17.08.2011, 10:51
Quote:
Hello guys! ,
Someone told me to post here. So I've made /b and /o but i want to make /w , /low and /s(hout) and how can i make a range system chat ? Like i mean in RP server , anyone who is near you can hear what u say , whoever isn't near you , wont hear you.. And i dont how to make them so can u make them for me ? I use STRCMP.. ( Cmon this is not a Huge task to do. ) |
pawn Код:
new Float:x, Float:y, Float:z, range = [put range here], text[128]; // if you have no string, add new string[128];
GetPlayerPos(playerid, x, y, z);
format(string, sizeof string, "%s", params); // use params if you have DCMD/ZCMD
for(new i; i < MAX_PLAYERS: i++)
{
if(IsPlayerInRangeOfPoint(i, range, x, y, z))
{
text[playerid] = Create3DTextLabel(string, [put color here], x, y, z, range, 0, 0/1 /*[can see text through wall put 1, else 0]*/);
Attach3DTextLabelToPlayer(text[playerid], playerid, 0, 0, 0.5);
}
}