Random car wanted level
#2

try this
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
      new rLevel = random(5);
      switch(rLevel)
      {
        case 1:
        {
          SetPlayerWantedLevel(playerid, random(5));
        }
        case 2..4:
        {
       
        }
      }
    }
    return 1;
}
Reply


Messages In This Thread
Random car wanted level - by SpawnZ - 12.08.2009, 01:16
Re: Random car wanted level - by James_Alex - 12.08.2009, 01:25
Re: Random car wanted level - by SpawnZ - 12.08.2009, 01:37
Re: Random car wanted level - by Yuryfury - 12.08.2009, 01:58
Re: Random car wanted level - by WrathOfGenesis - 12.08.2009, 07:08

Forum Jump:


Users browsing this thread: 1 Guest(s)