06.08.2012, 12:27
Use OnPlayerStateChange like this..
You'll need this at the top of the script
Hope this helped...
pawn Код:
if(newstate == PLAYER_STATE_ONFOOT)
{
if(inTaxi[playerid] == 1) //set inTaxi to 1 when the player enters the taxi
{
//Your money command + messages
inTaxi[playerid] = 0;
}
}
pawn Код:
new inTaxi[MAX_PLAYERS];