24.12.2012, 00:32
Alisson,
1 verifique se vocк tem 2 /darsocio
2 subistitua a linha com o nome la, bote if (PlayerInfo[playerid][pAdmin] >= 1341)
se n der certo, substitua seu comando por este:
Se ainda n der, delete o seu .amx e mande compilar dnv.
1 verifique se vocк tem 2 /darsocio
2 subistitua a linha com o nome la, bote if (PlayerInfo[playerid][pAdmin] >= 1341)
se n der certo, substitua seu comando por este:
pawn Код:
if(strcmp(cmd, "/darsocio", 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 (PlayerInfo[playerid][pAdmin] >= 1341)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pSocio] = 1;
format(string, sizeof(string), "Vocк ganhou Sуcio do admin %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Vocк deu VIP socio para %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return true;
}

