if(Mobile != 255)
{
new idx;
tmp = strtok(text, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s kaze (mobitel): %s", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
//printf("callers line %d called %d caller %d",Mobile[Mobile],Mobile,playerid);
if(Mobile == 914)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Bolnica: Nerazumijem?");
return 0;
}
new turner;
new wanted;
GetPlayerName(playerid, turner, sizeof(turner));
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Bolnica: OBavjestili smo sve jedinice.");
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Hvala na prijavi");
format(wanted, sizeof(wanted), "Bolnica: Sve Jedinice IA: Pozivac: %s",turner);
SendClientMessage(1, TEAM_CYAN_COLOR, wanted);
format(wanted, sizeof(wanted), "Bolnica: Incident: %s",text);
SendTeamMessage(1, TEAM_CYAN_COLOR, wanted);
SendClientMessage(playerid, COLOR_GRAD2, " Prekinuli su...");
Mobile = 255;
return 0;
}
}
Ako mi moze tko pomoc,
Znaci men treba da kada neko nazove bolnicu da to posalje poslu znaci
if(PlayerInfo == 11)
gdje ja sad trebam to ubacit da to posalje tom poslu
EDIT: i jos jedno pitanje da ne otvaram novu temu:
Kako da updatam 3d textlabel
evo kod
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(2.0, i, HouseInfo, HouseInfo, HouseInfo))
{
if(HouseInfo == 1)
{
if(HouseInfo == 0)
{
format(string, sizeof(string), "|| -This House is owned by %s- || \n|| -Level : %d- ||",HouseInfo,HouseInfo);
}
else
{
format(string, sizeof(string), "|| -This House is owned by %s- || \n|| -Rent: $%d- || \n|| -Level : %d- ||\n|| -Type /rentroom to rent a room- ||",HouseInfo,HouseInfo,HouseInfo);
}
Create3DTextLabel(string, COLOR_LIGHTBLUE, HouseInfo, HouseInfo, HouseInfo,10.0,0,0);
return 1;
}
else
{
format(string, sizeof(string), "|| -This House is for sale- ||\n|| -Discription: %s- ||\n|| -Cost: $%d- || \n|| -Level : %d- || \n|| -To buy this house type /buyhouse- ||",HouseInfo,HouseInfo,HouseInfo);
}
Create3DTextLabel(string, COLOR_LIGHTBLUE, HouseInfo, HouseInfo, HouseInfo,10.0,0,0);
return 1;
}
}
i slika kakvo je sad

