14.02.2009, 07:45
Thank u if u can bring me one
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( newkeys == 1 || newkeys == 9 || newkeys == 33 && oldkeys != 1 || oldkeys != 9 || oldkeys != 33)
{
new Car = GetPlayerVehicleID(playerid), Model = GetVehicleModel(Car);
switch(Model)
{
case 446,432,448,452,424,453,454,461,462,463,468,471,430,472,449,473,481,484,493,495,509,510,521,538,522,523,532,537,570,581,586,590,569,595,604,611: return 0;
}
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
}
return 1;
}
if(newkeys & KEY_SUBMISSION)
{
if(!IsPlayerInInvalidNosVehicle(playerid, GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, COLOR_GREEN, "You Recieved NoS! ");
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
}
}
return 1;
}