el3gy

Kod

Apr 9th, 2023
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. CMD:posadiseme(playerid, params[])
  2. {
  3. if(IsPlayerInRangeOfPoint(playerid, 6.0, 26.7081,-110.9354,0.6094))
  4. {
  5. if (GetPlayerSkin(playerid) == 34)
  6. {
  7. ApplyAnimation(playerid, LIBRARY, ANIMATION);
  8. TogglePlayerControllable(playerid, 0);
  9. SetTimer("sadiseme", 20000, false);
  10. TogglePlayerControllable(playerid, 1);
  11. }
  12. else
  13. {
  14. SendClientMessage(playerid, -1, "Niste uzeli radno odelo!"); // šaljemo poruku igracu
  15. }
  16. }
  17. else
  18. {
  19. SendClientMessage(playerid, -1, "Niste na lokaciji za sadnju semena!"); // šaljemo poruku igracu ako nije u blizini lokacije
  20. }
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment