26.04.2009, 14:41
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 425 || 520 || 432))
{
if(DMZone[playerid] == 0)
{
//Do nothing
}
else
{
SendClientMessage(playerid,RED,"Go to a DM to use this car.");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
Any help would be appreciated.
EDIT: Solved, Thank you very much Andom and Finn
![Smiley](images/smilies/smile.png)