Help,mole
#1

Ok,so i need a script that let you hear everything is talking a player,if he has connected a mole

Im working on my detective job,i tried 100 ways to do it,but i couldn't find the right way!

Description:
Your a detective,you type /setmole [playerid] ,then you can hear everything his talking IC
Reply
#2

in your command SetMole(), add 2 lines:
Код:
SetPVarInt(SnoopedID,"BeingSnooped",1);
SetPVarInt(SnoopedID,"SendMoleMessagesToID",playerid);
in your onplayertext (better: /PM command, idk if you restricted the distance for public chats, but i assume so), add a simple check if the (PM)sending playerid got a PVarInt set to 1 (true), if so, send that message to the ID pointed here:
Код:
if(GetPVarInt(playerid,"BeingSnooped"==1)
{
new SendMessageToIDAswell=GetPVarInt(playerid,"SendMoleMessagesToID");
SendClientMessage(SendMessageToIDAswell,blabla...
}
Reply
#3

Yea,it's only local IC Chat,with prox detector,and thanks,it worked!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)