04.12.2016, 14:04
Faz assim:
Caso seja Helper:
PHP код:
if(PlayerInfo[playerid][pAdmin] >= 1
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new string[128];
GetPlayerPos(playerid, plocx, plocy, plocz);
SetPlayerPos(giveplayerid, plocx, plocy, plocz);
FilaAtendimento[giveplayerid] = 999;
format(string,sizeof(string),"[Atendimento] Vocк estб sendo atendido pelo %s %s, seu atendimento demorou: %d segundos.",ChecarAdmin(playerid),PlayerName(playerid),TempoAtendimento2[playerid]);
SendClientMessage(giveplayerid,COLOR_YELLOW2,string);
format(string, sizeof string, "[Atendimento] %s[ID:%d] diz: Olб , Em que posso ajudar?", PlayerName(playerid),playerid);
SendClientMessageInRange(25.0, giveplayerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
TempoAtendimento2[giveplayerid] = 0;
return 1;
}
}
PHP код:
if(PlayerInfo[playerid][pHelper] >= 1
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new string[128];
GetPlayerPos(playerid, plocx, plocy, plocz);
SetPlayerPos(giveplayerid, plocx, plocy, plocz);
FilaAtendimento[giveplayerid] = 999;
PlayerInfo[playerid][pHelper] += 1;
format(string,sizeof(string),"[Atendimento] Vocк estб sendo atendido pelo %s %s, seu atendimento demorou: %d segundos.",ChecarAdmin(playerid),PlayerName(playerid),TempoAtendimento2[playerid]);
SendClientMessage(giveplayerid,COLOR_YELLOW2,string);
format(string, sizeof string, "[Atendimento] %s[ID:%d] diz: Olб , Em que posso ajudar?", PlayerName(playerid),playerid);
SendClientMessageInRange(25.0, giveplayerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
TempoAtendimento2[giveplayerid] = 0;
return 1;
}
}

