05.04.2010, 22:13
well, i want to make it so if you type /nitros you have a nitros added I got the command so far. but just need to make it so it adds Nitros to current car inside, any ideas how to?
if(strcmp("/nitro", cmd, true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
AddVehicleComponent(vehicleid,1010);
return 1;
}
helpfull as always.
|
Originally Posted by campkz
Thanks
helpfull as always. |
anytime
if(!strcmp(cmdtext,"/nitro", true) && IsPlayerInAnyVehicle(playerid)) return AddVehicleComponent(GetPlayerVehicleID(playerid),1010);