Jump to content
  • 0

Comanda necunoscuta



2 answers to this question

Recommended Posts

Pui la public OnPlayerCommandText sa returneze 1

Huh ?

Cum as putea face cand scri sa zicem de exemplu /setststt  sa zica ca comanda este necunoscuta?

Pui return 0; la sfarsitul comenzii ca sa zica "SERVER: Unknown Command !" cand se termina comanda, dar ca sa fie doar pentru cei care nu-s admini RCON pui asa la inceputul comenzii:

[pawn]if( !IsPlayerAdmin( playerid ) ) return 0; //va returna 0, Unknown Command si comanda nu se va mai continua[/pawn]

si schimbi doar !IsPlayerAdmin( playerid ) pentru alte cazuri.

Link to comment
Share on other sites

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.