License plate
#1

Hello, I was wondering, all vehicles on my server have the same license plate! Is it possible of change that to something else? Or is it possible to make a script that makes ALL plates say "Stunts"?
Reply
#2

pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
{
 SetVehicleNumberPlate(i, "Stunts");
 SetVehicleToRespawn(i);
}
Put this under OnGameModeInit

Edit:
Put this after all the vehicles you have created.
Reply
#3

Yes, it is possible

Just find: OnVehicleSpawn(vehicleid) and bellow add this:

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

Quote:
Originally Posted by ellyx
Посмотреть сообщение
Yes, it is possible

Just find: OnVehicleSpawn(vehicleid) and bellow add this:

Код:
new rand = random(3000); rand += 1500;
new string[32];
format(string, sizeof(string), "{D20000}STUNTS", rand);
SetVehicleNumberPlate(vehicleid, string);
My way, is truly and honestly easier, since it does it right when the GameMode starts up.
Reply
#5

Quote:
Originally Posted by Steven82
Посмотреть сообщение
My way, is truly and honestly easier, since it does it right when the GameMode starts up.
Sure, but I try to help this guy, but you post Earlier
Reply
#6

yeah i'm glad your attempting to help and not sit on your ass
Reply
#7

Quote:
Originally Posted by ellyx
Посмотреть сообщение
Yes, it is possible

Just find: OnVehicleSpawn(vehicleid) and bellow add this:

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

public OnVehicleSpawn(vehicleid)
{
[code=C]new rand = random(3000); rand += 1500;
new string[32];
format(string, sizeof(string), "{D20000}STUNTS", rand);
SetVehicleNumberPlate(vehicleid, string);[/code]
}

??
4 errors
Reply
#8

nvm it compiled. Gonna try it


nope didnt work
Reply
#9

ColdIce, which one are you trying? Did you try Ellyx's, or mine?
Reply
#10

Tried both, your showed me shitload of errors and Ellyx showed none, but it just didnt work on the server
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)