Jump to content
  • 0

Cum interzic unui jucator de level 5, sa nu poata folosi /ban care ii la level 5


Question

Posted

Hi ^^

Am o intrebare

De exemplu comanda /ban ii pusa sa functioneaza la cei de level 5.

Si sa zicem, ca eu nu vreau ca jucatori x si y sa nu poate folosi comanda /ban, dar ei au level 5, si as vrea sa stiu cum pot sa fac asta? Fara pentru a muta /ban la level mai mare, si fara sa le scad lor levelul.

Help my please.

Thanks for reply ^^


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

3 answers to this question

Recommended Posts

Posted

Hi ^^

Am o intrebare

De exemplu comanda /ban ii pusa sa functioneaza la cei de level 5.

Si sa zicem, ca eu nu vreau ca jucatori x si y sa nu poate folosi comanda /ban, dar ei au level 5, si as vrea sa stiu cum pot sa fac asta? Fara pentru a muta /ban la level mai mare, si fara sa le scad lor levelul.

Help my please.

Thanks for reply ^^

adaugi o conditie folosind strcmp.

[pawn]

new name[ MAX_PLAYER_NAME ];

GetPlayerName( playerid, name, sizeof name );

if ( strcmp( name, "Numele jucatorului", true ) == 0 || strcmp( name, "Numele jucatorului2", true ) == 0 )

{

SendClientMessage( playerid, -1, "You can not use this command.");

return true;

}

[/pawn]

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.