[Ajuda] Cmd so para admin
#1

Aew pessoal me esqueci como bota o comando sу para admins rcon , eu sabia mais esqueci e uma negocio mais o menos assim ==adminrcon que adcionada ao lado do comando ... mas esqueci do jeito certin... ksksksk !
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/interiores",true))
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"sу admin pode usar este comando");
TogglePlayerControllable(playerid, 0);
ShowPlayerDialog(playerid,2599,DIALOG_STYLE_LIST,"Teleportes Interior","INTERIORES 1\nINTERIORES 2\nINTERIORES 3\nINTERIORES 4\nINTERIORES 5\nINTERIORES 6\nINTERIORES 7\nINTERIORES 8\nINTERIORES 9\nINTERIORES 10\nINTERIORES 11\nDesligar","Aceitar","Cancelar");
EmDialog[playerid] = 1;
}
return true;
}
Reply
#2

pawn Код:
if(!IsPlayerAdmin(playerid))
Ficando :
pawn Код:
if(!strcmp(cmdtext,"/interiores",true))
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo e adm recon '-'");
//if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"sу admin pode usar este comando");
TogglePlayerControllable(playerid, 0);
ShowPlayerDialog(playerid,2599,DIALOG_STYLE_LIST,"Teleportes Interior","INTERIORES 1\nINTERIORES 2\nINTERIORES 3\nINTERIORES 4\nINTERIORES 5\nINTERIORES 6\nINTERIORES 7\nINTERIORES 8\nINTERIORES 9\nINTERIORES 10\nINTERIORES 11\nDesligar","Aceitar","Cancelar");
EmDialog[playerid] = 1;
}
return true;
}
Reply
#3

pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"sу admin pode usar este comando");
Ja tava no cmd
Reply
#4

vlw.... pioir й por que eu sabia de outro forma... e nem persebi ali o IsPlayerAdmin rsrs's vlw's...
Reply
#5

@duple post
malz e que to burrгo em pawn ai como fica se for botar sу em um FS separado nao vo adcionalo no GM vo fzer FS...

pawn Код:
if(!strcmp(cmdtext,"/teles",true))
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й administrador do [BRL](somente rcon)");
TogglePlayerControllable(playerid, 0);
ShowPlayerDialog(playerid,2599,DIALOG_STYLE_LIST,"Teleportes Interior","INTERIORES 1\nINTERIORES 2\nINTERIORES 3\nINTERIORES 4\nINTERIORES 5\nINTERIORES 6\nINTERIORES 7\nINTERIORES 8\nINTERIORES 9\nINTERIORES 10\nINTERIORES 11\nDesligar","Aceitar","Cancelar");
EmDialog[playerid] = 1;
}
return true;
}
Reply
#6

Quote:
Originally Posted by RNT
Посмотреть сообщение
@duple post
malz e que to burrгo em pawn ai como fica se for botar sу em um FS separado nao vo adcionalo no GM vo fzer FS...

pawn Код:
if(!strcmp(cmdtext,"/teles",true))
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й administrador do [BRL](somente rcon)");
TogglePlayerControllable(playerid, 0);
ShowPlayerDialog(playerid,2599,DIALOG_STYLE_LIST,"Teleportes Interior","INTERIORES 1\nINTERIORES 2\nINTERIORES 3\nINTERIORES 4\nINTERIORES 5\nINTERIORES 6\nINTERIORES 7\nINTERIORES 8\nINTERIORES 9\nINTERIORES 10\nINTERIORES 11\nDesligar","Aceitar","Cancelar");
EmDialog[playerid] = 1;
}
return true;
}
Basta abrir o fs, e colocar o comando no OnPlayerCommandText, e passar as infos, variaveis que voce ta usando no comando e por no fs '-'.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)