29.10.2016, 00:32
ta ai
Quote:
if(strcmp(cmd, "/dvip", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 3000) { SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para usar esse comando."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USE: /dvip [id] [Nivel] [Meses]"); return 1; } new para1; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USE: /dvip [id] [Nivel] [Meses]"); return 1; } new vaga; vaga = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USE: /dvip [id] [Nivel] [Meses]"); return 1; } new level; level = strval(tmp); GetPlayerName(para1, giveplayer, sizeof(giveplayer)); if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { format(string, sizeof string, "Vocк Desbugou o VIP Nнvel %d para %s com %d Meses", vaga, giveplayer, level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); if(level == 1) { SetarVip(para1, vaga, level,2); } else if(level == 2) { SetarVip(para1, vaga, level,2); } SalvarPlayer(para1); SaveVip(); } } } return 1; |