11.05.2010, 19:45
Como й localhost, eu uso /ligar 191. Mesmo assim, dps da xamada o celular nгo desliga... jб usei o Mobile = 255 e nada.
Alguem pd ajuda? vlW!
pawn Код:
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;
}
if(caller == 190)
{
SendClientMessage(caller, COLOR_GRAD2, "Desligou.");
CellTime[caller] = 0;
CellTime[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "Desligou.");
Mobile[caller] = 255;
}
if(caller == 191)
{
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;
CellTime[caller] = 0;
SendClientMessage(caller, COLOR_GRAD2, "Desligou.");
SendClientMessage(playerid, COLOR_GRAD2, "Desligou.");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
RingTone[playerid] = 0;
return 1;
}
}
}
SendClientMessage(playerid, COLOR_GRAD2, "Guardou o celular no bolso.");