20.11.2010, 15:12
in your command SetMole(), add 2 lines:
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:
Код:
SetPVarInt(SnoopedID,"BeingSnooped",1); SetPVarInt(SnoopedID,"SendMoleMessagesToID",playerid);
Код:
if(GetPVarInt(playerid,"BeingSnooped"==1) { new SendMessageToIDAswell=GetPVarInt(playerid,"SendMoleMessagesToID"); SendClientMessage(SendMessageToIDAswell,blabla... }