Jump to content
  • 0

Ce fac cind intra playeru sa aiba lv2


diedeath

Question

6 answers to this question

Recommended Posts

Poate vrei sa zici:-?

Cum pot sa fac cand intra un jucator pe server sa aiba level 2?

PS:am luxadmin!


La OnPlayerConnect:

SetPlayerLevel(playerid, levelu);

GetPlayerLevel(playerid, levelu);

Acu nu mai stiu sigur care e buna ... incearca vezi cu fiecare daca iti da tie level

468833_437698_362328_hiphop.jpg
Link to comment
Share on other sites

Poate vrei sa zici:-?

Cum pot sa fac cand intra un jucator pe server sa aiba level 2?

PS:am luxadmin!


La OnPlayerConnect:

SetPlayerLevel(playerid, levelu);

GetPlayerLevel(playerid, levelu);

Acu nu mai stiu sigur care e buna ... incearca vezi cu fiecare daca iti da tie level

what?? a spus LuxAdmin nu 0Admin...:|

si functia GetPlayerLevel stii pt ce ii? sa verifice daca de exemplu un player are level 3 sau mai mare sa il lase sa foloseasca comanda...

de ex:

CMD:givemescore( playerid, params[ ] )
{
    if ( GetPlayerLevel( playerid ) >= 3 )
    {
        SetPlayerScore( playerid, 10 );
    }
    else return SendClientMessage( playerid, RED, "Nu esti level 3 pentru a folosi comanda!" );
    return 1;
}
@diedeath pune asa la OnPlayerConnect dupa LoginPlayer( playerid ); asta:
AccInfo[ playerid ][ Level ] = 2;

si incearca daca va merge ;)

Fara reclama in semnatura!

Link to comment
Share on other sites

@xxSPEEDYxx s`o lom logic

daca el pune la public OnPlayerConnect nu poate sa`i de level pentru ca nu are account pe server

Si el are LuxAdmin ;))

C:\Users\Die\Desktop\RomDK\filterscripts\LuxAdmin.pwn(571) : error 017: undefined symbol "SetPlayerLevel"

Si cred ca trebuie pus la : [pawn]dcmd_CMD_REGISTER(playerid,params[])[/pawn]

76561198055981270.png

http://devilgaming.ro/forum

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.