pawn Код:
if(strcmp(cmd, "/darvip", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [ id ] [ Nivel ]");
new plo = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [ id ] [ Nivel ]");
new nivel = strval(tmp);
if(!IsPlayerConnected(plo)) return SendClientMessage(playerid, COLOR_GRAD1, "O jogador nгo estб conectado.");
if(admtrampando[playerid] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/jogar)");
if(PlayerInfo[playerid][pAdmin] < 1338) return SendClientMessage(playerid, COLOR_GRAD1, "Voce nгo esta autorizado a usar este comando!");
new NickName[MAX_PLAYER_NAME];
GetPlayerName(playerid, NickName, MAX_PLAYER_NAME);
new vipnome[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid,vipnome,sizeof(vipnome));
PlayerInfo[giveplayerid][pVIP] = nivel;
new year, month,day;
getdate(year, month, day);
new hour, minute;
gettime(hour,minute);
format(string, sizeof(string), "%s deu vip ao %s nнvel %d ( %d/%d/%d - %d:%d)",NickName,vipnome,nivel,year, month, day,hour, minute);
VipsLog(string);
ABroadCast(COLOR_LIGHTRED,string,1);
return 1;
}
.