[Help] How to change the numberplates?
#1

I got cars in server, And all of its number plates are "XYZ" i want to make it to my roleplayservers name "OS:RP"

anyone help m?
Reply
#2

Код:
for(new i=1; i<MAX_VEHICLES; i++)
{
SetVehicleNumberPlate(i, "OS:RP");
}
Reply
#3

Where do i add it?
Reply
#4

under OnPlayerConnect
Reply
#5

pawn Код:
public OnGameModeInit()
{
    CreateVehicle(...);
    CreateVehicle(...);
    CreateVehicle(...);

    for(new v = 0; v < MAX_VEHICLES; v++)
    {
        SetVehicleNumberPlate(v, "OS:RP");
        SetVehicleToRespawn(v);
    }
    return 1;
}
EDIT: Too late ^
Reply
#6

umm,
pawn Код:
OnGamemodeinit
or
pawn Код:
onplayerconnect?
Reply
#7

public OnGameModeInit()

EDIT: Do like what i did in my 1st post then it should work fine.
Reply
#8

Quote:
Originally Posted by Sid_Alexander
Посмотреть сообщение
umm,
pawn Код:
OnGamemodeinit
or
pawn Код:
onplayerconnect?
Think about it. Do you really want every vehicle to respawn when a player connects?
Reply
#9

i want to make it for all cars to get a numberplate named "OS:RP"
Reply
#10

Quote:
Originally Posted by CyberGhost
Посмотреть сообщение
pawn Код:
public OnGameModeInit()
{
    CreateVehicle(...);
    CreateVehicle(...);
    CreateVehicle(...);

    for(new v = 0; v < MAX_VEHICLES; v++)
    {
        SetVehicleNumberPlate(v, "OS:RP");
        SetVehicleToRespawn(v);
    }
    return 1;
}
^ Do like this then it should work fine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)