[code]if(dialogid == MOBILEN2)
{
if(IsPlayerConnected(playerid))
{
if(response)
{
foreach (Player, i)
{
new giveplayerid;
new phonenumb = strval(inputtext);
if(PlayerInfo[i][pPnumber] == phonenumb)
{
giveplayerid = i;
Mobile[playerid] = giveplayerid;
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
ShowPlayerDialog(playerid, MOBILEN3, DIALOG_STYLE_INPUT,"- PRATI PORAKA -","Napisete sto sakate da pisuva vo porakata:","Isprati","Izlezi");
return 1;
}
}
}
}
}
}
}
if(dialogid == MOBILEN3)
{
if(IsPlayerConnected(playerid))
{
foreach (Player, i)
{
new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "|%s vadi mobilen telefon i isprakja poraka..", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
new giveplayerid;
giveplayerid = i;
strval(inputtext);
if(PhoneOnline[giveplayerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "{F81414}INFO:{FFFFFF}Pretplatnikot go isklucil telefonot,obidete se podocna...");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "SMS: %s, Ispratil: %s (0%d)", inputtext,sendername,PlayerInfo[playerid][pPnumber]);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
format(string, sizeof(string), "SMS: %s, Ispratil: %s (0%d)", inputtext,sendername,PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid, COLOR_YELLOW, string);
SendClientMessage(playerid, COLOR_WHITE, "{F81414}INFO:{FFFFFF}SMS poraka e pratena");
RingTone[giveplayerid] = 20;
Mobile[playerid] = 255;
format(string, sizeof(string), "|%s vadi mobilen telefon i cita poraka..", giveplayer);
ProxDetector(30.0, giveplayerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}
}
}[code]