22.02.2012, 21:25
Eu tenho um serve pronto mas nгo fiz o cmd de gmx e eu nгo sei fazer nгo queria de zcmd quero de dcmd se alguem puder me ajuda
if (strcmp("/gmx", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
SendRconCommand("gmx");
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[ GMX ] O Administrador %s reiniciou o Servidor!!", pname);
SendClientMessageToAll(-1, string);
return 1;
}
SendRconCommand("gmx");
pawn Код:
|
if(strcmp(cmd, "/gmx", true) == 0 || strcmp(cmd, "/restart", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] > 1337) { if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342) { return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)"); } for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { OnPlayerSave(i); } } GameModeExitFunc(); } else { SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para dar GMX!"); } } return 1; } |
SendRconCommand("gmx"); |
if(strcmp(cmdtext,"/gmx",true)==0) {
if(!IsPlayerAdmin(playerid))
return false;
SendRconCommand( "gmx" );
return true;
}