01.09.2009, 10:26
I tried this:
In:
public OnPlayerStateChange(playerid, newstate, oldstate)
if player vehicle is a cop car..
But nothing happens :S
Can someone help me?
Tnx
Код:
if(newstate == PLAYER_STATE_DRIVER) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 523 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 597 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 599) { new weapons[13][2]; for (new i = 0; i < 13; i++) GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]); ResetPlayerWeapons(playerid); for (new i = 0; i < 13; i++) if(weapons[i][0] != 0 && weapons[i][1] > 0 && weapons[i][0] != 25) GivePlayerWeapon(playerid, weapons[i][0], weapons[i][1]); }
public OnPlayerStateChange(playerid, newstate, oldstate)
if player vehicle is a cop car..
But nothing happens :S
Can someone help me?
Tnx