Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SendClientMessage(playerid, COLOR_WHITE, "|______________[ Vips do Server ]______________|");for(new x=0; x<sizeof(VipInfo); x++){if(strcmp(VipInfo[x][vNick],"Ninguem",true) != 0){format(string, sizeof(string), "Vip ID:[%d]: %s Nível:[%d]", x, VipInfo[x][vNick], VipInfo[x][vTipo]);SendClientMessage(playerid, COLOR_AZULBB, string);}}return true;}
- if(strcmp(cmd, "/resetarobj",true) == 0){if(IsPlayerConnected(playerid)){if (PlayerInfo[playerid][pAdmin] >= 2){
- DestroyObject(pRoadCones[playerid]);pRoadCones[playerid] = 0;DestroyObject(PlayerInfo[playerid][pParedao]);PlayerInfo[playerid][pParedao] = 0;DestroyObject(pRoadblock[playerid]);pRoadblock[playerid] = 0;DestroyObject(PlayerInfo[playerid][pBarraca]);PlayerInfo[playerid][pBarraca] = 0;SendClientMessage(playerid, COR_PM,"Você retirou todos os objetos como Barreiras, Bloqueios e etc...");}}return true;}
- if(strcmp(cmd, "/resetarpcosa",true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 2){DestroyObject(acn);acn = CreateObject(2933, 321.39999389648, -1188.1999511719, 77.099998474121, 0, 359, 37.996215820313);}}return true;}
- if(strcmp(cmd, "/darvip", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- GetPlayerName(playerid, sendername, 256);
- if (strcmp(sendername,"Ilde_Cooper",true)==0 || strcmp(sendername,"Ilde_Cooper",true)==0 || strcmp(sendername,"Ilde_Cooper",true)==0)
- {
- VipVaga();
- if(VagaSobrando == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Não há mais vagas na lista use /limparvip primeiro.");
- return true;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [id] [Nivel]");
- return true;
- }
- new para1;
- new level;
- para1 = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [id] [Nivel]");
- return true;
- }
- level = strval(tmp);
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- format(string, sizeof string, "Você deu VIP Nível %d para %s", level, giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof string, "Você ganhou VIP Nível %d do admin %s", level, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- getdate(year, month, day);
- gettime(hour,minute,second);
- format(string, sizeof(string), "%s deu vip ao %s nível %d (%d/%d/%d - %d:%d)",sendername,giveplayer,level,day, month, year,hour, minute);
- VipsLog(string);
- PlayerInfo[para1][pVIP] = level;
- new var03 = 0;
- for(new i = 0; i < sizeof(VipInfo); i++)
- {
- if(strcmp(giveplayer,VipInfo[i][vNick],true)==0)
- {
- VipInfo[i][vTipo] = level;
- SaveVip();
- var03 = 1;
- break;
- }
- }
- if(var03 == 0)
- {
- for(new i = 0; i < sizeof(VipInfo); i++)
- {
- if(strcmp("Ninguem",VipInfo[i][vNick],true)==0)
- {
- strmid(VipInfo[i][vNick], giveplayer, 0, strlen(giveplayer), 255);
- VipInfo[i][vTipo] = level;
- SaveVip();
- break;
- }
- }
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Você não esta autorizado a usar este comando!");
- }
- }
- return true;
- }
- if (strcmp(cmd, "/limparvip", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] < DONO)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Você não está autorizado a usar este comando!");
- return true;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USE: /limparvip [Vaga]");
- return true;
- }
- new Vagao = strval(tmp);
- if(Vagao < 0 || Vagao > 50) { SendClientMessage(playerid, COLOR_GREY, "Vaga mínima 0 máximo 50!"); return true; }
- if(IsPlayerOnline(VipInfo[Vagao][vNick]))
- {
- new id=GetPlayerID(VipInfo[Vagao][vNick]);
- PlayerInfo[id][pVIP] = 0;
- SendClientMessage(id, COLOR_YELLOW, "Você perdeu seu VIP, renove-o e receba seus benefícios de volta");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement