Guest User

Untitled

a guest
Nov 14th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. public OnPlayerUpdate(playerid)
  2.  
  3. if(!IsPlayerInAnyVehicle(playerid))
  4. {
  5. new animlib[30], animname[30];
  6. GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
  7. new Float:posx, Float:posy, Float:posz;
  8. GetPlayerPos(playerid, posx, posy, posz);
  9. if(posz >= 2)
  10. {
  11. if(strcmp(animlib, "SWIM", true) == 0 && strcmp(animname, "SWIM_crawl", true) == 0)
  12. {
  13. new plname[MAX_PLAYER_NAME];
  14. new string[256];
  15. GetPlayerName(playerid, plname, sizeof(plname));
  16. format(string,sizeof(string),"%s a primit kick pentru: Fly Hack",plname);
  17. SendClientMessageToAll(0xFFFFFFFF, string);
  18. Kick(playerid);// aici primeste kick
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment