Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerUpdate(playerid)
- if(!IsPlayerInAnyVehicle(playerid))
- {
- new animlib[30], animname[30];
- GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
- new Float:posx, Float:posy, Float:posz;
- GetPlayerPos(playerid, posx, posy, posz);
- if(posz >= 2)
- {
- if(strcmp(animlib, "SWIM", true) == 0 && strcmp(animname, "SWIM_crawl", true) == 0)
- {
- new plname[MAX_PLAYER_NAME];
- new string[256];
- GetPlayerName(playerid, plname, sizeof(plname));
- format(string,sizeof(string),"%s a primit kick pentru: Fly Hack",plname);
- SendClientMessageToAll(0xFFFFFFFF, string);
- Kick(playerid);// aici primeste kick
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment