(help) WATER
#5

Quote:
Originally Posted by Fj0rtizFredde
Посмотреть сообщение
This code will only work as long as a player is not in a vehicle
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;
}
but if the player is in water !! it works or not ?
Reply


Messages In This Thread
(help) WATER - by Amine_Mejrhirrou - 26.01.2011, 12:38
Re: (help) WATER - by hadzx - 26.01.2011, 12:43
Re : (help) WATER - by Amine_Mejrhirrou - 26.01.2011, 18:53
Re: (help) WATER - by Fj0rtizFredde - 26.01.2011, 18:55
Re : Re: (help) WATER - by Amine_Mejrhirrou - 26.01.2011, 19:25
Re: (help) WATER - by Fj0rtizFredde - 26.01.2011, 20:05
Re : (help) WATER - by Amine_Mejrhirrou - 26.01.2011, 20:19
Re : (help) WATER - by Amine_Mejrhirrou - 26.01.2011, 20:20
Re: (help) WATER - by DVDK - 26.01.2011, 20:21
Re: (help) WATER - by Fj0rtizFredde - 26.01.2011, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)