Cars system
#1

I need a command to create cars for sale and to keep them saved

CMD:createvehicle(playerid, params[])
{
new cadena[52], modelo, Float:X, Float:Y, Float:Z;
if(!sscanf(params, "i", modelo))
GetPlayerPos(playerid, X, Y, Z);
Vehiculo[playerid] = CreateVehicle(modelo, X, Y, Z, 0, 0, 0, -1);
PutPlayerInVehicle(playerid, Vehiculo[playerid], 0);
format(cadena, sizeof(cadena), "Created vehicle! ID %d", modelo);
SendClientMessage(playerid, -1, cadena);
}
else SendClientMessage(playerid, -1, "[!] Usage /createvehicle <ID>");
return 1;
}
Reply


Messages In This Thread
Cars system - by zZzTGTzZz - 19.11.2017, 03:18
Re: Cars system - by Lucases - 19.11.2017, 08:45

Forum Jump:


Users browsing this thread: 1 Guest(s)