pawn Код:
if(strcmp(cmd, "/setarvip", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x008040AA, "| ERRO | Vocк nгo й admin.");
new tmp[256] , Dias , plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0x008040AA, "| ERRO | Use: /setarvip [id] [dias].");
Dias = strval(tmp);
if(!strlen(tmp)) return SendClientMessage(playerid, 0x008040AA, "| ERRO | Use: /setarvip [id] [dias].");
plid = strval(tmp);
if(Dias <= 0 && Dias >= 60) return SendClientMessage(playerid, Vermelho, "O Valor й acima de 0 e abaixo de 60.");
if(!IsPlayerConnected(plid)) return SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} ID invбlido");
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), P_CONTAS, pname);
dini_IntSet(file2, "VIP",1);
dini_IntSet(file2,"Vipvencido",getdate());
dini_IntSet(file2,"Dias",Dias);
dini_IntSet(file2, "VIP",1);
SpawnPlayer(plid);
format(string, sizeof(string), "» O Administrador deu VIP para %s de %d dias ", pname, Dias, tmp);
SendClientMessage(playerid, -1, string);
return 1;
}