23.10.2017, 20:05
Hello, im developing a gamemode and and im going pretty good with.
I mean like for a starter its amazing i guess :P
So i have the prox detector for chat but when i spectate someone i want to see their chats too.
Anybody can help?
I know its a wrong use of getplayercamerapos but what can i use this like?
I mean like for a starter its amazing i guess :P
So i have the prox detector for chat but when i spectate someone i want to see their chats too.
Anybody can help?
Код:
stock ProxDetector(Float:radi, playerid, string[],color) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInRangeOfPoint(i,radi,x,y,z) || IsPlayerInRangeOfPoint(GetPlayerCameraPos(i),radi,x,y,z)) { SendClientMessage(i,color,string); } } }