18.07.2013, 18:04
Quote:
|
But if it's vehicle > 0, that means they aren't in a car.
Then it will send the message. |
for example, let's say a player is an infernus:
pawn Код:
CMD:nitro(playerid, params[])
{
new vehicle; // Vehicle ID Will be saved here
vehicle = GetPlayerVehicleID(playerid); // vehicle = 411 (Infernus ID)
if(vehicle > 0) // if(411 > 0) --> Returns True
{ // then
AddVehicleComponent(vehicle, 1010); // Gives nitrous
}
else SendClientMessage(playerid,0xFF0000FF,"You are not in a vehicle!");
return 1;
}


