Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/eventteam", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "Event Team Members Online:");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pEV] == 1)
- {
- format(string, sizeof(string), "Ajutor %s (ID: %d) - %s", GetPlayerNameEx(i), i ,PlayerInfo[i][pForumName]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else if(PlayerInfo[i][pEV] == 2)
- {
- format(string, sizeof(string), "Lider %s (ID: %d) - %s", GetPlayerNameEx(i), i ,PlayerInfo[i][pForumName]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- }
- }
- if(strcmp(cmd, "/aev", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{FFFFFF}Folosire{696969}: /aev [playerid/partofname]");
- return 1;
- }
- new id = strval(tmp);
- if(PlayerInfo[playerid][pAdministrator] >= 6)
- {
- if(IsPlayerConnected(id))
- {
- if(id != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[id][pEV] == 1 || PlayerInfo[id][pEV] == 2)
- {
- format(string, sizeof(string), "Functia de EV ti-a fost scoasa de catre %s", GetPlayerNameEx(playerid));
- SendClientMessage(id, COLOR_WHITE, string);
- format(string, sizeof(string), "I-ai scos lui %s functia de EV.", GetPlayerNameEx(id));
- SendClientMessage(playerid, COLOR_ADMINCMD, string);
- PlayerInfo[id][pHOF] = 0;
- }
- else
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "{FFFFFF}Folosire{696969}: /aev [playerid/partofname] [1-ajutor / 2-lider]");
- return 1;
- }
- new val = strval(tmp);
- format(string, sizeof(string), "Functia de EV ti-a fost acordata de catre %s", GetPlayerNameEx(playerid));
- SendClientMessage(id, COLOR_WHITE, string);
- format(string, sizeof(string), "L-ai promovat pe %s ca EV", GetPlayerNameEx(id));
- SendClientMessage(playerid, COLOR_ADMINCMD, string);
- PlayerInfo[id][pHOF] = val;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "Playerul nu este activ.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu esti autorizat sa folosesti comanda!");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/eventduty", true) == 0 || strcmp(cmd, "/evduty", true) == 0)
- {
- if(PlayerInfo[playerid][pEV] >= 1)
- {
- if(EventDuty[playerid] == 1)
- {
- format(string, sizeof(string), "[Event Team] %s (ID:%d) este indisponibil.", GetPlayerNameEx(playerid),playerid);
- EventMesssage(COLOR_EVENTDUTY,string);
- SetPlayerColor(playerid,COLOR_WHITE);
- EventDuty[playerid] = 0;
- }
- else
- {
- format(string, sizeof(string), "[Event Team ] %s (ID:%d) este disponibil.", GetPlayerNameEx(playerid),playerid);
- EventMessage(COLOR_EVENTDUTY,string);
- EventDuty[playerid] = 1;
- SetPlayerColor(playerid,COLOR_GREEN);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu esti autorizat sa folosesti comanda!");
- }
- return 1;
- }
- CMD:e(playerid, params[])
- {
- if (PlayerInfo[playerid][pEV] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY,"Nu esti autorizat sa folosesti aceasta comanda.");
- return 1;
- }
- new szMessage[128];
- if(sscanf(params, "s[128]", szMessage))
- {
- return SendClientMessage(playerid,COLOR_GREY,"USAGE: (/e)vent [message]");
- }
- if(Achat == 1 && PlayerInfo[playerid][pEV] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " Canalul Event este inchis.");
- return 1;
- }
- new szString[129+1+MAX_PLAYER_NAME+3];
- format(szString, 129+1+MAX_PLAYER_NAME+3, "[Event-Chat] %s: %s", GetPlayerNameEx(playerid), szMessage);
- foreach(Player, i)
- {
- if(PlayerInfo[i][pEV] >= 1)
- {
- SendPlayerExtendedMessage(i, 0xF97804FF, szString);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment