Posts: 49
Threads: 21
Joined: Jul 2010
Reputation:
0
Hey guys... i just modificated an LA-RP and i try from 2 days to add some new personal cars and i cant do it...
the mod have only 59 and my players already take them all... they say to me to add some new cars and i cant damn add some new cars ... help please
Posts: 208
Threads: 38
Joined: Aug 2010
Reputation:
0
add this in commands:
if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);
CreatedCars[CreatedCar] = carid;
CreatedCar ++;
format(string, sizeof(string), " Vehicle %d spawned.", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}
in gameplay type /veh modelid color1 color2
you can find model id and color in wikipedia
Posts: 49
Threads: 21
Joined: Jul 2010
Reputation:
0
i got this man i mean personal cars not simple vehs
Posts: 208
Threads: 38
Joined: Aug 2010
Reputation:
0
type:
/respawnrentcars
/respawnrentbikes
/respawnallcars
Posts: 49
Threads: 21
Joined: Jul 2010
Reputation:
0
dude i need to know how to add new personl cars WITH /v lock /v park an this !
Posts: 49
Threads: 21
Joined: Jul 2010
Reputation:
0
are you all nuts ? this fucking mode have personal cars system but all cars are in use i need to add new cars ffs what is so hard?
Posts: 49
Threads: 21
Joined: Jul 2010
Reputation:
0
its not script or command :-j i must create them from cars.cfg and i created them and they not appear on the server