new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name))
if(strcmp("/banirme", cmdtext, true) == 0)
if((strcmp(name, "PawninG_OwnA", true) == 0)
{
Ban(playerid);//AQUI COLOCA FUNЗГO DESEJADA NO CASO SE AUTO BANIR
}
Originally Posted by DraKoN
Search Ajuda..
pawn Код:
|
new Name2[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name2,sizeof(Name2));
if(strcmp("/banirme", cmdtext, true) == 0)
if((strcmp(Name2, "Pawning", true) == 0))
{
Ban(playerid);
}
}
new Name2[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name2,sizeof(Name2)); if(strcmp("/pawning", cmdtext, true) == 0) if((strcmp(Name2, "PawninG_Teste", true) == 0)) { { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid,COLOR_GREY,"Somente PawninG Teste pode usar esse comando!"); return 1; } GetPlayerName(playerid,sendername,sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid,COLOR_GRAD2,"USE: (/pawning [texto]"); return 1; } format(string,sizeof(string),"Admin: %s: %s",sendername,result); SendClientMessageToAll(COLOR_RED,string); } return 1; }
new Name2[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name2,sizeof(Name2));
if(strcmp("/pawning", cmdtext, true) == 0)
i
{
{
f((strcmp(Name2, "PawninG_Teste", true) == 0))
{
SendClientMessage(playerid,COLOR_GREY,"Somente PawninG Teste pode usar esse comando!");
return 1;
}
GetPlayerName(playerid,sendername,sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid,COLOR_GRAD2,"USE: (/pawning [texto]");
return 1;
}
format(string,sizeof(string),"Admin: %s: %s",sendername,result);
SendClientMessageToAll(COLOR_RED,string);
}
return 1;
}
new Name2[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name2,sizeof(Name2));
if(strcmp("/pawning", cmdtext, true) == 0)
i
{
{
f((strcmp(Name2, "PawninG_Teste", true) == 0)) {
{
SendClientMessage(playerid,COLOR_GREY,"Somente PawninG Teste pode usar esse comando!");
return 1;
}
GetPlayerName(playerid,sendername,sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid,COLOR_GRAD2,"USE: (/pawning [texto]");
return 1;
}
format(string,sizeof(string),"Admin: %s: %s",sendername,result);
SendClientMessageToAll(COLOR_RED,string);
}
return 1;
}
}
if(strcmp("/pawning", cmdtext, true) == 0)
{
if (PlayerInfo[playerid][pName] == Pawning_Owna)
{
SendClientMessage(playerid,COLOR_GREY,"Somente PawninG Teste pode usar esse comando!");
return 1;
}
GetPlayerName(playerid,sendername,sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid,COLOR_GRAD2,"USE: (/pawning [texto]");
return 1;
}
format(string,sizeof(string),"Admin: %s: %s",sendername,result);
SendClientMessageToAll(COLOR_RED,string);
return 1;
}