How to?
#1

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
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;
}
Thanks.
Reply


Messages In This Thread
How to? - by [BFK]MetalHead - 30.01.2012, 13:51
Re: How to? - by CyNiC - 30.01.2012, 14:10
Re: How to? - by [BFK]MetalHead - 30.01.2012, 14:13
Re: How to? - by CyNiC - 30.01.2012, 14:32
Re: How to? - by [BFK]MetalHead - 30.01.2012, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)