I need help with mechanic job
#1

/nos and a /fix command how do i add those to the mech job please someone help me...!!!!
Reply
#2

search this has been posted many times
Reply
#3

Didnt find much and i need it for a roleplay script so if anyone would post it here i would be grateful
Reply
#4

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
Reply
#5

can i just add that randomly in the script or does it need a certain location?
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)