Guest User

Untitled

a guest
Oct 30th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. new FishName[][] =
  2. {
  3. {"LineSnap"},
  4. {"Trout"},
  5. {"Shark"},
  6. {"Tuna"},
  7. {"Flounder"},
  8. {"Sea Bass"}
  9. };
  10.  
  11. forward public FishingTimer(playerid);
  12. public FishingTimer(playerid)
  13. {
  14. if(PlayerFishing[playerid] > 0)
  15. {
  16. new string[128];
  17. PlayerFishing[playerid] = 0;
  18. TogglePlayerControllable(playerid, 1);
  19.  
  20. new rFish = random(sizeof(rFish));
  21. if(strfind(FishName[rFish], "LineSnap")) // And here is what fucks up the random fishes. Always shows line snapped now
  22. {
  23. format(string, sizeof(string), "%s's rod line has snapped!", GetName(playerid));
  24. SendActionMessage(string);
  25. return 1;
  26. }
  27. else
  28. {
  29. format(string, sizeof(string), "You have caught a fish - %s!", FishName[rFish]);
  30. SendClientMessage(playerid, COLOR_CORNSILK, string);
  31. }
  32. }
  33. return 1;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment