06.01.2016, 23:29
Alguйm pode me mandar um script que tira a arma da mгo do motorista, os q eu achei tira o do passageiro tbm ' -'
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(playerid,0);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate){
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER){
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}