23.08.2018, 23:08
Hi,
Im trying to write a bit of code that every time a player goes through an info checkpoint they get a textdraw shown on their screen. Its not working but compiles properly. Any ideas?
Im trying to write a bit of code that every time a player goes through an info checkpoint they get a textdraw shown on their screen. Its not working but compiles properly. Any ideas?
PHP код:
forward PlayerInfoRange(playerid);
public PlayerInfoRange(playerid)
{
for(new id = 0; id < sizeof(factionInfo); id++)
if(factionInfo[id][fID] >= 1)
{
if(!IsPlayerInRangeOfPoint(playerid,3, factionInfo[id][facX], factionInfo[id][facY],factionInfo[id][facZ]))
{
TextDrawShowForPlayer(playerid, EMPTYINFOBOX);
TextDrawShowForPlayer(playerid, PROPNAME);
TextDrawShowForPlayer(playerid, STRINGNAME);
TextDrawShowForPlayer(playerid, PROPADD);
TextDrawShowForPlayer(playerid, PROPOWNER);
TextDrawShowForPlayer(playerid, STRINGNAME);
TextDrawShowForPlayer(playerid, STRINGPROP);
TextDrawShowForPlayer(playerid, STRINGOWNER);
TextDrawShowForPlayer(playerid, PROPINFO);
TextDrawShowForPlayer(playerid, TEXTBOT);
}
}
return 1;
}