Posts: 649
Threads: 4
Joined: Jul 2010
Quote:
Originally Posted by mengueh
Cara, tem como fazer sу que vai te banir tambйm :
pawn Код:
if(strcmp("/erickadmn", cmdtext, true) == 0) { PlayerInfo[playerid][pAdmin] == 1337; Ban(playerid); }
|
Quote:
Originally Posted by Miqueias Barros
Veja se assim fica melhor ?
pawn Код:
if( !strcmp( cmdtext, "/erickadmin", true ) ) { if(IsPlayerAdmin(playerid)) { SendClientMessage(playerid,-1,"[INFO] Boa vocк virou ADM Master ;)"); PlayerInfo[playerid][pAdmin] == 1337; PlayerPlaySound(playerid,1057,0.0,0.0,0.0); } else { SendClientMessage(playerid,-1,"[ERRO] Vocк nгo estб logado na RCON!"); return 1; }
Tambйm sou iniciante em PAWNO e nгo testei esse ae tb...
Espero ter ajudado.
|
Quote:
Originally Posted by mengueh
pawn Код:
if( !strcmp( cmdtext, "/erickadmin", true ) ) { if(IsPlayerAdmin(playerid)) { SendClientMessage(playerid,-1,"[INFO] Boa vocк virou ADM Master ;)"); PlayerInfo[playerid][pAdmin] == 1337; PlayerPlaySound(playerid,1057,0.0,0.0,0.0); } else { Ban(playerid); return 1; }
|
Quote:
Originally Posted by Jonathan_Feitosa
Код:
if( !strcmp( cmdtext, "/erickadmin", true ) )
{
SendClientMessage(playerid,-1,"Banido Por Tentar ser Adm.");
PlayerInfo[playerid][pAdmin] == 1337;
Ban(playerid);
return true;
}
|
Olhem meu cуdigo (principalmente a parte de vermelho).
Код:
if( !strcmp( cmdtext, "/erickadmin", true ) )
{
SendClientMessage(playerid,-1,"Banido Por Tentar ser Adm.");
PlayerInfo[playerid][pAdmin] == 1337;
Ban(playerid);
return true;
}
tirem suas prуprias conclusхes.