public OnPlayerText(playerid, text[]){ new Float:x, Float:y, Float:z, str[128]; GetPlayerPos(playerid, x, y, z); GetPlayerName(playerid, nev, sizeof(nev));nev[strfind(nev,\"_\")] = \' \';for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)==1 && Belepve== 1) { if(IsPlayerInRangeOfPoint(i, 15, x, y, z)) { if(playerid != i)format(str, sizeof(str), \"%s: %s\", nev, text); if(playerid == i)format(str, sizeof(str), \"Te: %s\", text); SendClientMessage(i, -1,str); } } } return 0;}
pl nekem így néz ki: public OnPlayerText(playerid, text[]){ new Float:x, Float:y, Float:z, str[128]; GetPlayerPos(playerid, x, y, z); GetPlayerName(playerid, nev, sizeof(nev));nev[strfind(nev,\"_\")] = \' \';for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)==1 && Belepve== 1) { if(IsPlayerInRangeOfPoint(i, 15, x, y, z)) { if(playerid != i)format(str, sizeof(str), \"%s: %s\", nev, text); if(playerid == i)format(str, sizeof(str), \"Te: %s\", text); SendClientMessage(i, -1,str); } } } return 0;}