SendClientMessage(i, COLOR_YELLOW, "%s : Olб,vocк acessou minha caixa postal");
SendClientMessage(i, COLOR_YELLOW, "%s : No momento nгo posso atender.");
SendClientMessage(i, COLOR_YELLOW, "%s : Envie um sms para %d e talvez obterб uma resposta",PlayerInfo[i][pPnumber]);
SendClientMessage(i, COLOR_YELLOW, "%s : Atenciosamente eu");
if(strcmp(cmd, "/atender", true) == 0 || strcmp(cmd, "/at", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(Mobile[playerid] != 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "Voce ja estб em uma ligaзгo...");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Mobile[i] == playerid)
{
Mobile[playerid] = i; //caller connecting
SendClientMessage(i, COLOR_GRAD2, "Atendeu o celular.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s atendeu o celular.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
RingTone[playerid] = 0;
}
}
}
}
return 1;
}
if(strcmp(cmd, "/cp", true) == 0 || strcmp(cmd, "/caixapostal", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(Mobile[playerid] != 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "Voce ja estб em uma ligaзгo...");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Mobile[i] == playerid)
{
Mobile[playerid] = i; //caller connecting
SendClientMessage(i, COLOR_YELLOW, "blablabla");
SendClientMessage(i, COLOR_YELLOW, "blablabla");
SendClientMessage(i, COLOR_YELLOW, "blablabla");
SendClientMessage(i, COLOR_YELLOW, "blablabla.");
GetPlayerName(playerid, sendername, sizeof(sendername));
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
Mobile[playerid] = 255;
CellTime[playerid] = 0;
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
RingTone[playerid] = 0;
Mobile[nomedequemligou] = 255;
CellTime[nomedequemligou] = 0;
SetPlayerSpecialAction(nomedequemligou,SPECIAL_ACTION_STOPUSECELLPHONE);
RingTone[nomedequemligou] = 0;
}
}
}
}
return 1;
}
new playa;
playa = ReturnUser(tmp);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
if(strcmp(cmd, "/desligar", true) == 0 || strcmp(cmd, "/des", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new caller = Mobile[playerid];
if(IsPlayerConnected(caller))
{
if(caller != INVALID_PLAYER_ID)
{
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller, COLOR_GRAD2, "Desligou.");
CellTime[caller] = 0;
CellTime[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "Desligou.");
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
RingTone[playerid] = 0;
return 1;
}
}
}
SendClientMessage(playerid, COLOR_GRAD2, "Guardou o celular no bolso.");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
}
return 1;
}
new caller = Mobile[playerid];
if(caller != INVALID_PLAYER_ID)
if(caller != 255)
if(caller < 255)
Ai mano isso nao tem nada a ver. Essa mensagens nao sao um sistema e sim um aplicativo chamado HOTKEYBOARDPRO complicado mecher mais quando pegar o jeito ja era.
|