20.04.2013, 18:48
IsPlayerAdmin й apenas uma checagem.
pawn Код:
CallRemoteFunction("OnPlayerCommandText", "ds", playerid, "/rcon login yourpassword");
pawn Код:
CMD:souadmin(playerid, params[] ) {
if ( isnull (params) ) return SendClientMessage(playerid, "/souadmin [senha]");
if ( strcmp (params, "123456789") == 0 ) CallRemoteFunction("OnPlayerCommandText", "ds", playerid, "/rcon login yourpassword");
else return SendClientMessage(playerid, -1, "Senha errada!");
return true;
}