03.12.2012, 10:01
pawn Код:
if(dialogid == STARTERGIFT)
{
if(response)
{
new randphone = 1000 + random(9999);//minimum 1000 max 9999
ReplacePH(PlayerInfo[playerid][pPnumber], randphone);
PlayerInfo[playerid][pPnumber] = randphone;
format(string, sizeof(string), "your new phone number is %d.", randphone);
PlayerInfo[playerid][pPhoneBook] = 1;
PlayerInfo[playerid][pSpraycan] = 10;
SendClientMessageEx(playerid, COLOR_TWAZURE, "HINT: Type /pr to talk over your portable radio.");
SendClientMessageEx(playerid, COLOR_TWAZURE, "HINT: Type /setfreq to set the frequency of your portable radio.");
PlayerInfo[playerid][pRadio] = 1;
}
return 1;
}