warning too awesome
#1

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    for(new i=1; i<MAX_VEHICLES; i++)
{
    SetVehicleNumberPlate(i, "TEAMCWA");
}

    new string[128];
    format(string,sizeof(string),"[Vehicle Spawn] Vehicle ID: %d Spawned",vehicleid);
    VGas[vehicleid] = Rand(10,100);
    WriteToLog("VehicleLog",string);
    return 1;
}
it Still gives the old Number Plate
Reply
#2

Respawn the vehicle.
Reply
#3

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
Respawn the vehicle.
you dont understand, i want if Someone Spawns IT.
the numberplate becomes Teamcwa
Reply
#4

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
Respawn the vehicle.
I second that. Respawn vehicle.

Peace...
Reply
#5

Quote:
Originally Posted by Stigg
Посмотреть сообщение
I second that. Respawn vehicle.

Peace...
omg, Read ALL posts before POSTING.

if your blind Let me say it again

if a Vehicle Spawns, i want the Vehicle to Set That NumberPlate!
Reply
#6

Dont Spit your dummy out. lolz.

Peace...
Reply
#7

https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate
Reply
#8

Put something on the code to respawn the vehicle when it spawn... Can't explain better but something like that...

I am not sure if is this the function!

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    for(new i=1; i<MAX_VEHICLES; i++)
{
    SetVehicleNumberPlate(i, "TEAMCWA");
    SetVehicleToRespawn(carid);
}

    new string[128];
    format(string,sizeof(string),"[Vehicle Spawn] Vehicle ID: %d Spawned",vehicleid);
    VGas[vehicleid] = Rand(10,100);
    WriteToLog("VehicleLog",string);
    return 1;
}
Not tested, hope it work!
Reply
#9

For starting you don't need that loop either, thats just unneeded. And I suppose you have to respawn the vehicle aswell, but I am not sure if thats needed when its under that callback
Reply
#10

thanks ricardo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)