07.11.2013, 20:16
acredito ser so uma falha no testo tipo do /retirarvip id e nгo sai entгo fui no pawn e olhei e percebi que falta uma coisa no /vip seria oque tem no /socio:
como editaria isso para vip em vez de socio? oque parece estar faltando o de vip!!!
tentei trocar as palavras mais nгo obtive sucesso
Код:
if(strcmp(cmd, "/retirarsocio", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /darsocio [id]");
return true;
}
new para1;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, 256);
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1341)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para usar esse comando.");
return 1;
}
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pSocio] = 0;
format(string, sizeof(string), "Seu Socio Foi retirado pelo adm %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Vocк retirou o Socio de %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return true;
}
tentei trocar as palavras mais nгo obtive sucesso


