hello friends im trying to make a phone system but it doesnt work. I have on dialog response for 911 call and taxi call but they dont send the messages to required players and it doesnt process ProxDetector fucntion too...
My Code:
My Code:
Code:
case 789911:
{
if(response)
{
new Text[128],pname[24];
GetPlayerName(playerid,pname,24);
format(Text,sizeof(Text),"[ph]%s: %s",pname,inputtext);
ProxDetector(23.0, playerid, Text, -1);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(USER[i][FACTION] == 1 || USER[i][FACTION] == 2)
{
SendClientMessage(i,COLOR_YELLOW,Text);
}
}
if(noo3a == 0)
{
noo3a=1;
format(noo3,sizeof(noo3),Text);
noo2a=0;
}
if(noo2a == 0)
{
noo2a=1;
format(noo2,sizeof(noo2),Text);
noo3a=0;
}
}
}
case 789544:
{
if(response)
{
new Text[128],pname[24];
GetPlayerName(playerid,pname,24);
format(Text,sizeof(Text),"[ph]%s: %s",pname,inputtext);
ProxDetector(23.0, playerid, Text, -1);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(USER[i][FACTION] == 4)
{
SendClientMessage(i,COLOR_YELLOW,Text);
}
}
}
}