SA-MP Forums Archive
warning too awesome - 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: warning too awesome (/showthread.php?tid=215811)



warning too awesome - Fool - 24.01.2011

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


Re: warning too awesome - Retardedwolf - 24.01.2011

Respawn the vehicle.


Re: warning too awesome - Fool - 24.01.2011

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


Re: warning too awesome - Stigg - 24.01.2011

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

Peace...


Re: warning too awesome - Fool - 24.01.2011

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!


Re: warning too awesome - Stigg - 24.01.2011

Dont Spit your dummy out. lolz.

Peace...


Re: warning too awesome - Retardedwolf - 24.01.2011

https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate


Re: warning too awesome - ricardo178 - 24.01.2011

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!


Re: warning too awesome - playbox12 - 24.01.2011

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


Re: warning too awesome - Fool - 24.01.2011

thanks ricardo.