Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcmp(cmd, "/irfila", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USO: /irfila [playerid/Parte-do-Nick]");
- return 1;
- }
- new Float:plocx,Float:plocy,Float:plocz;
- new plo;
- plo = ReturnUser(tmp);
- if (IsPlayerConnected(plo))
- {
- if(plo != INVALID_PLAYER_ID)
- {
- new nome[24];
- GetPlayerName(playerid, nome, sizeof nome);
- if(PlayerInfo[playerid][pAdmin] >= 1 || strfind(nome, ADMPLAYER, true) == 0 || strfind(nome, ADMPLAYER2, true) == 0 )
- {
- if(PlayerInfo[plo][pAge] << 0){
- if(Spectate[playerid] != 255)
- {
- Spectate[playerid] = 256;
- }
- GetPlayerPos(plo, plocx, plocy, plocz);
- if(PlayerInfo[plo][pInt] > 0)
- {
- SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
- PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
- PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
- }
- if(PlayerInfo[playerid][pInt] == 0)
- {
- SetPlayerInterior(playerid,0);
- }
- if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8
- {
- SetPlayerInterior(playerid,1);
- PlayerInfo[playerid][pInt] = 1;
- }
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid,plocx,plocy+2, plocz);
- }
- GetPlayerName(plo, giveplayer,256);
- GetPlayerName(playerid, sendername,256);
- format(string, sizeof(string), "[Evolution Life RP] Você foi atender ao chamado de %s.", giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "[Evolution Life RP] O administrador %s, veio para te atender.", sendername);
- SendClientMessage(plo, COLOR_WHITE, string);
- new string2[256];
- format(string2, sizeof(string), "[Evolution Life RP] O Admin %s foi atender o player %s.", sendername, giveplayer);
- ABroadCast(COLOR_KICKBAN,string2,1);
- PlayerInfo[plo][pAge] = 0;
- }else{
- SendClientMessage(playerid, COLOR_GRAD1, "O player não está na fila.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Você não está autorizado a usar este comando.");
- }
- }
- }
- else
- {
- format(string, sizeof(string), " %d não é um player ativo.", plo);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment