Taxi Script help
#4

Use OnPlayerStateChange like this..

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;
     }
}
You'll need this at the top of the script
pawn Код:
new inTaxi[MAX_PLAYERS];
Hope this helped...
Reply


Messages In This Thread
Taxi Script help - by [LHT]Bally - 05.08.2012, 15:46
Re: Taxi Script help - by [LHT]Bally - 05.08.2012, 17:43
Re: Taxi Script help - by [LHT]Bally - 06.08.2012, 10:55
Re: Taxi Script help - by CentyPoo - 06.08.2012, 12:27

Forum Jump:


Users browsing this thread: 2 Guest(s)