SA-MP Forums Archive
Help,mole - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help,mole (/showthread.php?tid=191809)



Help,mole - SkizzoTrick - 20.11.2010

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


Re: Help,mole - Babul - 20.11.2010

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...
}



Re: Help,mole - SkizzoTrick - 20.11.2010

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