18.12.2010, 18:51
(
Последний раз редактировалось Ash.; 12.11.2015 в 01:07.
Причина: I failed on GetVehicleModel xD
)
Quote:
Thanks, added.
Also, could you explain us how you fixed it by scripting? |
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new
vid = GetPlayerVehicleID(playerid),
model = GetVehicleModel(vid)
;
if(model == 520 || model == 425)
{
SetPlayerArmedWeapon(playerid, 0);
}
}
return 1;
}