30.01.2012, 13:51
Hey guys,
I wanna create a custom callback.Can anyone tell me how can i do it ?
The callback would be IsPlayerSwimming(playerid)
I have the stock for it
Thanks.
I wanna create a custom callback.Can anyone tell me how can i do it ?
The callback would be IsPlayerSwimming(playerid)
I have the stock for it
pawn Код:
stock IsPlayerInWater(playerid)
{
new animlib[32],tmp[32];
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,tmp,32);
if(!strcmp(animlib, "SWIM") && !IsPlayerInAnyVehicle(playerid)) return true;
return false;
}