Making private plate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Making private plate (
/showthread.php?tid=255625)
Making private plate - ColdIce - 16.05.2011
pawn Код:
dcmd_acar(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 2)
{
if (!IsPlayerInAnyVehicle(playerid))
{
CarSpawner(playerid,411);
SendCommandToAdmins(playerid,"ACar");
return SendClientMessage(playerid,yellow,"|- Car Successfully Created! -|");
}
else return SendClientMessage(playerid,red,"Error: You already have a vehicle");
}
else return ErrorMessages(playerid, 7);
}
Where do I change it so that /acar will spawn with the plate ADMIN? I already have a script that makes all the car's plates say STUNTS, but maybe I can make this admin car have its own plate?
Re: Making private plate -
THE_KNOWN - 16.05.2011
I think the car spawner command is ilused in other ckds as well. So placing the setplate func would mess up the other car plates.so i say you manually make the car there and not use the car spawner func then set its plate. Could you post the car spawner func here?
Re: Making private plate - ColdIce - 16.05.2011
pawn Код:
public OnVehicleSpawn(vehicleid)
{
new rand = random(3000); rand += 1500;
new string[32];
format(string, sizeof(string), "{D20000}STUNTS", rand);
SetVehicleNumberPlate(vehicleid, string);
}
Re: Making private plate -
THE_KNOWN - 16.05.2011
No i meant the car spawner func u used on the 8th line
Re: Making private plate - ColdIce - 16.05.2011
Dont know where to find it, this is in my GM, not a fs
Re: Making private plate - ColdIce - 16.05.2011
Cant I just remove that thing from my GM and have only admin cars with personal plates?
Let's say that I never added that to my GM, and I only wanted /acar to have personal plate, how would i do that?
Re: Making private plate - ColdIce - 16.05.2011
pawn Код:
dcmd_acar(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 2)
{
if (!IsPlayerInAnyVehicle(playerid))
{
CarSpawner(playerid,411);
SendCommandToAdmins(playerid,"ACar");
return SendClientMessage(playerid,yellow,"|- Car Successfully Created! -|");
}
else return SendClientMessage(playerid,red,"Error: You already have a vehicle");
}
else return ErrorMessages(playerid, 7);
}
What to add there to make it personal plate?
Re: Making private plate -
Steven82 - 16.05.2011
Quote:
Originally Posted by THE_KNOWN
No i meant the car spawner func u used on the 8th line
|
Don't try to steal other peoples code....it's not a hard function to make.
Re: Making private plate -
THE_KNOWN - 17.05.2011
Quote:
Originally Posted by Steven82
Don't try to steal other peoples code....it's not a hard function to make.
|
im not trying to steal his fuunc. I wanted to know if it sets any var fpr the car it would spawn from the regular cars. If it does we could know the var used for admin vehs to set the plates.