Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock IsPlayerInWater(playerid)
- {
- new lib[16], anim[32];
- GetAnimationName(GetPlayerAnimationIndex(playerid), lib, sizeof(lib), anim, sizeof(anim));
- if(!strcmp(lib, "SWIM", true) && !isnull(lib)) return 1;
- if(!strcmp(lib, "PED", true) && !strcmp(anim, "SWIM_TREAD", true)) return 1;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment