01.10.2010, 22:27
Supposed to get if the player enters the faction car, and also...
EDIT: Like
Something like that.
EDIT 2: Don't use PHP Code use
[ pawn ] [ /pawn ]
without the spaces.
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
{
//NOT
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
{
if(IsPlayerInAnyVehicle(playerid) == FACTIONCAR)
{
if(IsPlayerInFaction(playerid)) return 1;
}
}
EDIT 2: Don't use PHP Code use
[ pawn ] [ /pawn ]
without the spaces.