I need help with mechanic job -
seragon95 - 20.09.2009
/nos and a /fix command how do i add those to the mech job please someone help me...!!!!
Re: I need help with mechanic job -
brett7 - 20.09.2009
search this has been posted many times
Re: I need help with mechanic job -
seragon95 - 20.09.2009
Didnt find much and i need it for a roleplay script so if anyone would post it here i would be grateful
Re: I need help with mechanic job -
brett7 - 20.09.2009
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/nos", cmdtext, true, 4) == 0)
{
new Car = GetPlayerVehicleID(playerid), Model = GetVehicleModel(Car);
switch(Model)
{
case 446,432,448,452,424,453,454,461,462,463,468,471,43 0,472,449,473,481,484,493,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 (strcmp("/fix", cmdtext, true, 4) == 0)
{
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
return 0;
}
need 0.3 for repair car but try searching next time
Re: I need help with mechanic job -
seragon95 - 20.09.2009
can i just add that randomly in the script or does it need a certain location?
Re: I need help with mechanic job -
seragon95 - 20.09.2009
Quote:
Originally Posted by seragon95
can i just add that randomly in the script or does it need a certain location?
|
sorry im new to scripting