Car colour
#1

Hi all i've got this car spawner
Код:
if(strcmp(cmd, "/car", true, 10) == 0)
	{
if (gangwar[playerid] == 1) return SendClientMessage(playerid,rossokiaro,"{11d6e0}Usa {d8e064}/leave");
new Float:x, Float:y, Float:z;
if(!strlen(tmp)) return SendClientMessage(playerid, rossokiaro, "Usa /car [nomeveicolo]");
new vehicle = GetVehicleModelIDFromName(tmp);
if(vehicle < 400 || vehicle > 611) return SendClientMessage(playerid, rossokiaro, "Non и stato trovato questo veicolo");
new Float:a;
GetPlayerFacingAngle(playerid, a);
GetPlayerPos(playerid, x, y, z);
if(IsPlayerInAnyVehicle(playerid) == 1)
{
GetXYInFrontOfPlayer(playerid, x, y, 8);
}
else
{
GetXYInFrontOfPlayer(playerid, x, y, 5);
}
new PlayersVehicle = CreateVehicle(vehicle, x, y, z, a+90, -1, -1, -1);
PutPlayerInVehicle(playerid, PlayersVehicle,0);
LinkVehicleToInterior(PlayersVehicle, GetPlayerInterior(playerid));
format(stringa, sizeof(stringa), "Hai Spawnato: %s", vehName[vehicle - 400]);
SendClientMessage(playerid, COLOR_GREEN, stringa);
return 1;
}
how can i put the vehicle color? /car name colour1 colour2?
Reply


Messages In This Thread
Car colour - by XxXBr0nXxX - 07.09.2013, 18:40
Re: Car colour - by SeniorGamer - 08.09.2013, 02:44

Forum Jump:


Users browsing this thread: 4 Guest(s)