25.02.2010, 16:14
Quote:
Originally Posted by [AC
Etch ]
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new vehicleid = GetPlayerVehicleID(playerid); new modelid = GetVehicleModel(vehicleid); if((newkeys & KEY_HANDBRAKE)) { if(modelid == 476 || modelid == 520) // rustler and hydra { GivePlayerWeapon(playerid,46,1); new Float:pos[3]; GetPlayerPos(playerid,pos[0],pos[1],pos[2]); SetPlayerPos(playerid,pos[0],pos[1],pos[2]+400); GameTextForPlayer(playerid, "~R~Ejecting..", 5000, 5); } } return 1; } |