Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnObjectMoved(objectid)
- {
- for(new i=1; i<6; i++)
- {
- new Float:x,Float:y,Float:z;
- GetObjectPos(Cow[i],x,y,z);
- if(y == 2264.0)
- {
- KillTimer(Server[HorseRace]);
- StopCows();
- ResetCows();
- new str[128];
- for(new j=0; j<MAX_PLAYERS_VAR; j++)
- {
- if(IsPlayerInZone(player,2094.1577,2035.5647,2271.0032,2203.5833))
- {
- format(str,sizeof(str),"Vyhrala krava {FF0000}%s {008000}(%d)!",GetCowName(i),i);
- SendClientMessage(player,COLOR_GREEN,str);
- }
- }
- break;
- }
- }
- return true;
- }
Add Comment
Please, Sign In to add comment