26.03.2013, 09:55
Well, I wonder what's the 2 represented...
pawn Код:
if(newkeys & KEY_SUBMISSION)
{
if(GetPlayerState(playerid) == 2)
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
RepairVehicle(GetPlayerVehicleID(playerid));
GameTextForPlayer(playerid, "Vehicle Fixed", 2000, 6);
PlayerPlaySound(playerid, 1133, 0, 0, 10);
}
}
pawn Код:
if(newkeys & KEY_FIRE)
{
if(GetPlayerState(playerid) == ) //What to put here?
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
PlayerPlaySound(playerid, 1133, 0, 0, 10);
}
}