SA-MP Forums Archive
[Help] How to change the numberplates? - 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)
+--- Thread: [Help] How to change the numberplates? (/showthread.php?tid=254459)



[Help] How to change the numberplates? - Sid_Alexander - 10.05.2011

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?


Re: [Help] How to change the numberplates? - TheYoungCapone - 10.05.2011

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



Re: [Help] How to change the numberplates? - Sid_Alexander - 10.05.2011

Where do i add it?


Re: [Help] How to change the numberplates? - TheYoungCapone - 10.05.2011

under OnPlayerConnect


Re: [Help] How to change the numberplates? - Laronic - 10.05.2011

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 ^


Re: [Help] How to change the numberplates? - Sid_Alexander - 10.05.2011

umm,
pawn Код:
OnGamemodeinit
or
pawn Код:
onplayerconnect?



Re: [Help] How to change the numberplates? - Laronic - 10.05.2011

public OnGameModeInit()

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


Re: [Help] How to change the numberplates? - iFriSki - 10.05.2011

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?


Re: [Help] How to change the numberplates? - Sid_Alexander - 10.05.2011

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


Re: [Help] How to change the numberplates? - Laronic - 10.05.2011

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