Jump to content

Question

Posted

hello :)

Vreau ca atunci knd un player spawneaza o masina,masina respectiva sa aibe alt numar de inmatriculare de genul :Bucuresti,STR..etc..

ceva de genul

http://1.1.1.4/bmi/www.sa-mp.com/stuff/03cPromo/PlatePro2.png :)

Sau cum este pe serverul lui Stuntman

Sper sa nu se considere reclama :))

Multumesc:)

youtube.com/secretofficial1 < - SECRET CHANNEL !

4 answers to this question

Recommended Posts

Posted

LA : [pawn]public OnGameModeInit()[/pawn]

Pui:

[pawn] for(new i; i<MAX_PLAYERS; i++)

{

              if(!IsAPlane(model) && !IsABoat(model)) SetVehicleNumberPlate(i, "NUMAR");

    if(IsPlayerConnected(i))

    {

        OnPlayerConnect(i);

                  }

              }

//restul[/pawn]

*Inlocuiesti "NUMAR" cu numarul care vrei sa apara

*Poti sa pui culori 0.3c ;)

*Eu am asa :

SetVehicleNumberPlate(i, "{0049FF}R{F3FF02}P{F81414}G");

Dupa mai jos

[pawn]stock IsAPlane(model)

{

    switch(model)

    {

        case 593,592,577,563,553,548,520,519,513,512,511,

        497,488,487,476,469,460,447,425,417,493,484,453: return 1;

        default: return 0;

    }

    return 0;

}

stock IsABoat(model)

{

    switch(model)

    {

        case 472,473,595,493,430,453,484,446,452,454: return 1;

        default: return 0;

    }

    return 0;

}[/pawn]

PS merge decat pe 0.3c ;)

76561198055981270.png

http://devilgaming.ro/forum

Posted

Daca ai comanda cu care se spawneaza masina poti pune la comanda:

[pawn]

SetVehicleNumberPlate(vehicle, "Number");

//vehicle schimba cum tie denumita masina care se creaza[/pawn]

Si daca vrei sa fie numar diferit poti faace cu random.

 

Posted

LA : [pawn]public OnGameModeInit()[/pawn]

Pui:

[pawn] for(new i; i<MAX_PLAYERS; i++)

{

              if(!IsAPlane(model) && !IsABoat(model)) SetVehicleNumberPlate(i, "NUMAR");

    if(IsPlayerConnected(i))

    {

        OnPlayerConnect(i);

                  }

              }

//restul[/pawn]

*Inlocuiesti "NUMAR" cu numarul care vrei sa apara

*Poti sa pui culori 0.3c ;)

*Eu am asa :

SetVehicleNumberPlate(i, "{0049FF}R{F3FF02}P{F81414}G");
Dupa mai jos [pawn]stock IsAPlane(model) {     switch(model)     {         case 593,592,577,563,553,548,520,519,513,512,511,         497,488,487,476,469,460,447,425,417,493,484,453: return 1;         default: return 0;     }     return 0; } stock IsABoat(model) {     switch(model)     {         case 472,473,595,493,430,453,484,446,452,454: return 1;         default: return 0;     }     return 0; }[/pawn] PS merge decat pe 0.3c ;)
Am pus la public ongamemodeinit
//nr de inmatriculare
for(new i; i<MAX_PLAYERS; i++)
{
              if(!IsAPlane(model) && !IsABoat(model)) SetVehicleNumberPlate(i, "{F81414}Fu{FFAF00}nk{00C0FF}y");
    if(IsPlayerConnected(i))
    {
        OnPlayerConnect(i);
                  }
              }
              stock IsAPlane(model)
{
    switch(model)
    {
        case 593,592,577,563,553,548,520,519,513,512,511,
        497,488,487,476,469,460,447,425,417,493,484,453: return 1;
        default: return 0;
    }
    return 0;
}

stock IsABoat(model)
{
    switch(model)
    {
        case 472,473,595,493,430,453,484,446,452,454: return 1;
        default: return 0;
    }
    return 0;
}
si imi da erorile
D:\Romania Funky Server v2\gamemodes\Funky.pwn(798) : warning 202: number of arguments does not match definition
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10224) : error 017: undefined symbol "IsAPlane"
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10230) : error 029: invalid expression, assumed zero
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10230) : error 017: undefined symbol "IsAPlane"
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10232) : error 017: undefined symbol "model"
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10241) : warning 225: unreachable code
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10241) : error 029: invalid expression, assumed zero
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10241) : error 017: undefined symbol "IsABoat"
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10243) : error 017: undefined symbol "model"
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10252) : warning 225: unreachable code
Daca bag
new Model;
si 
new IsAPlane;
imi da
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10224) : error 036: empty statement
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10226) : error 012: invalid function call, not a valid address
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10226) : warning 215: expression has no effect
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10226) : error 001: expected token: ";", but found ")"
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10226) : error 029: invalid expression, assumed zero
D:\Romania Funky Server v2\gamemodes\Funky.pwn(10226) : fatal error 107: too many error messages on one line
linia 10226
if(!IsAPlane(model) && !IsABoat(model)) SetVehicleNumberPlate(i, "{F81414}Fu{FFAF00}nk{00C0FF}y");

youtube.com/secretofficial1 < - SECRET CHANNEL !

Posted

Acum ma copiati pe mine ...

NU MAI COPIATI !!!

Un loop + http://wiki.sa-mp.com/wiki/SetVehicleNumberPlate = number plate la toate vehiculele.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.