29.07.2011, 02:07
(
Последний раз редактировалось Famalamalam; 29.07.2011 в 02:07.
Причина: double if
)
In OnPlayerStateChange:
Should work aye-ok.
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new model = GetVehicleModel(vehicleid);
if(model == 520)
{
if(pRank[playerid] < 2)
{
SendClientMessage(playerid, color, "You are not allowed to use this vehicle!");
RemovePlayerFromVehicle(playerid);
}
}
}