Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new FishName[][] =
- {
- {"LineSnap"},
- {"Trout"},
- {"Shark"},
- {"Tuna"},
- {"Flounder"},
- {"Sea Bass"}
- };
- forward public FishingTimer(playerid);
- public FishingTimer(playerid)
- {
- if(PlayerFishing[playerid] > 0)
- {
- new string[128];
- PlayerFishing[playerid] = 0;
- TogglePlayerControllable(playerid, 1);
- new rFish = random(sizeof(rFish));
- if(strfind(FishName[rFish], "LineSnap")) // And here is what fucks up the random fishes. Always shows line snapped now
- {
- format(string, sizeof(string), "%s's rod line has snapped!", GetName(playerid));
- SendActionMessage(string);
- return 1;
- }
- else
- {
- format(string, sizeof(string), "You have caught a fish - %s!", FishName[rFish]);
- SendClientMessage(playerid, COLOR_CORNSILK, string);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment