Vehicle Number Plate
#1

Hello,
how to create Vehicle Number Plate for name : ''Monster-Game'' please
Reply
#2

Here it is http://forum.sa-mp.com/showthread.ph...t=number+plate
Next time search on Filterscript section.
Reply
#3

plate automatic no cmds
Reply
#4

Using this function
https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate

As the vehicle has to be respawned you can use something like
pawn Код:
new bool:IsVehiclePlateOk[MAX_VEHICLES];

OnVehicleSpawn(vehicleid)
{
    if(!IsVehiclePlateOk[vehicleid])
    {
        IsVehiclePlateOk[vehicleid] = true;
        SetVehicleNumberPlate(vehicleid, "Monster-Game");
        SetVehicleToRespawn(vehicleid);
    }
    return 1;
}
Reply
#5

Код:
C:\Documents and Settings\Administrateur\Bureau\Monster-Game version Xmas\gamemodes\TE.pwn(17262) : error 021: symbol already defined: "OnVehicleSpawn"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
make a fs please
Reply
#6

symbol already defined

That means that you already use OnVehicleSpawn. Just find it and add that code there instead of having the same callback 2 times.
Reply
#7

how to add in please
Код:
}

public OnVehicleSpawn(vehicleid)
{
    S_DATA[ S_VSpawns ]++;
	for( new i=0;i<MAX_PLAYERS;i++ )
	{
        if( vehicleid == P_DATA[ i ][ P_Car ] )
		{
		    CarDeleter(vehicleid);
	        P_DATA[ i ][ P_Car ] = -1;
        }
	}
	return 1;
}
Reply
#8

The word "Monster-Game" will not fully fit on a vehicle's number plate, btw.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)