[SUG/FS-ADM] S.A.S Admin Script
#10

O kicktag (eu uso DCMD & Sscanf) й mais ou menos assim:

OnPlayerCommandText:
pawn Код:
dcmd(kicktag,7,cmdtext);
O comando:
pawn Код:
dcmd_kicktag(playerid,params[])
{
    new tag[15],mot[100],msgma[128];
    if(sscanf(params,"ss",tag,mot)) SendClientMessage(playerid,vermelhoescuro,"SERVER: /kicktag [TAG] [MOTIVO]");
    else if(!IsPlayerAdmin) SendClientMessage(playerid,vermelhoescuro,"SERVER: Comando apenas para Admins RCON!");
    else {
    new Pnam[25];
    GetPlayerName(playerid,PNam,25);
    format(msgma,128,"SERVER: O Admin %s (ID:%i) kickou todos com a Tag '%s' pelo motivo: %s",PNam,playerid,tag,mot);
    SendClientMessageToAll(laranja,msgma);
    for(new y=0;y<=MAX_PLAYERS;y++) {
    if(strfind(PlayerName(y),tag)!=-1) {
            Kick(y);
        }
    }
    }
    return 1;
}
Um exemplo do comando.



EDIT: O da Skin:

No topo do GM, embaixo das #include:
pawn Код:
new SkinP=1;
No comando:
pawn Код:
if(!strcmp("/skin",cmdtext,true)) {
Coloque:
pawn Код:
if(!strcmp("/skin",cmdtext,true)&&SkinP==1) {
Comando:
pawn Код:
if(!strcmp("/skin",cmdtext,true)&&IsPlayerAdmin(playerid)) {
if(SkinP==1) {SkinP=0;}
else {SkinP=1;}
return 1;
}
Comando bбsico, podendo ser alterado!
Reply


Messages In This Thread
[SUG/FS-ADM] S.A.S Admin Script - by SuB_ZeRo0_ - 19.04.2010, 23:57
Re: [SUG/FS-ADM] S.A.S Admin Script - by (o)Trydon - 20.04.2010, 00:42
Re: [SUG/FS-ADM] S.A.S Admin Script - by SuB_ZeRo0_ - 20.04.2010, 00:44
Re: [SUG/FS-ADM] S.A.S Admin Script - by (o)Trydon - 20.04.2010, 01:05
Re: [SUG/FS-ADM] S.A.S Admin Script - by RoamPT - 20.04.2010, 02:43
Re: [SUG/FS-ADM] S.A.S Admin Script - by andmeida10 - 20.04.2010, 05:59
Re: [SUG/FS-ADM] S.A.S Admin Script - by Ricardo_Saddler - 20.04.2010, 10:25
Re: [SUG/FS-ADM] S.A.S Admin Script - by SuB_ZeRo0_ - 20.04.2010, 18:17
Re: [SUG/FS-ADM] S.A.S Admin Script - by Negгo - 24.06.2010, 10:15
Re: [SUG/FS-ADM] S.A.S Admin Script - by SuB_ZeRo0_ - 24.06.2010, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)