Making private plate
#1

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?
Reply
#2

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?
Reply
#3

pawn Код:
public OnVehicleSpawn(vehicleid)
{
   new rand = random(3000); rand += 1500;
   new string[32];
   format(string, sizeof(string), "{D20000}STUNTS", rand);
   SetVehicleNumberPlate(vehicleid, string);
}
Reply
#4

No i meant the car spawner func u used on the 8th line
Reply
#5

Dont know where to find it, this is in my GM, not a fs
Reply
#6

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

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?
Reply
#8

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.
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)