Guest User

Untitled

a guest
Oct 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public OnObjectMoved(objectid)
  2. {
  3. for(new i=1; i<6; i++)
  4. {
  5. new Float:x,Float:y,Float:z;
  6. GetObjectPos(Cow[i],x,y,z);
  7. if(y == 2264.0)
  8. {
  9. KillTimer(Server[HorseRace]);
  10. StopCows();
  11. ResetCows();
  12. new str[128];
  13. for(new j=0; j<MAX_PLAYERS_VAR; j++)
  14. {
  15. if(IsPlayerInZone(player,2094.1577,2035.5647,2271.0032,2203.5833))
  16. {
  17. format(str,sizeof(str),"Vyhrala krava {FF0000}%s {008000}(%d)!",GetCowName(i),i);
  18. SendClientMessage(player,COLOR_GREEN,str);
  19. }
  20. }
  21. break;
  22. }
  23. }
  24. return true;
  25. }
Add Comment
Please, Sign In to add comment