10.03.2015, 23:45
How do I make a global chat? when the player press "T" open chat and he enter a message, send only to who is near to him, and if you want to send a message to all he has to enter /g [text] +REP
C:\Users\Jean\f\f\gamemodes\e.pwn(2407) : error 017: undefined symbol "SendClientMessageEx"
C:\Users\Jean\f\f\gamemodes\e.pwn(2409) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\Jean\f\f\gamemodes\e.pwn(2411) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\Jean\f\f\\e.pwn(2412) : error 017: undefined symbol "ProxDetector"
C:\Users\Jean\f\f\gamemodes\e.pwn(2413) : error 017: undefined symbol "PlayerInfo"
public OnPlayerText(playerid, text[])
{
new Float:x, Float:y, Float:z; // Declares 3 floats
GetPlayerPos(playerid, x, y, z); // Store the position of the player that wrote in the floats we created
foreach(new i : Player) // Loop through all players, and define them as "i"
{
if(IsPlayerInRangeOfPoint(i, range, x, y, z)) SendPlayerMessageToPlayer(playerid, i, text);
// If "i" is in range of the xyz (which is the position of the player that wrote) send him the message, change the range to the distance you want
}
return 1;
}