12.08.2009, 01:25
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;
}