Encrypting text - 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: Encrypting text (
/showthread.php?tid=148564)
Encrypting text -
russo666 - 17.05.2010
I'm bored because i spent alot of time searching for this and i couldn't find.
I knew how to encrypt text for just one team could understand what they are saying and the others not, but now i can't remember. Like i said i tried to search but i couldn't find anything.
If you don't understand what i mean, here is an example:
Team 1 says: LOl team 2 sucks!
Team 1 see: LOl team 2 sucks!
Team 2 see: UHAH SUUHA SH UASUH
Thanks in advance.
Re: Encrypting text -
russo666 - 18.05.2010
Bump.
Re: Encrypting text -
¤Adas¤ - 18.05.2010
Try to not send these msgs to team 2?
Re: Encrypting text -
russo666 - 18.05.2010
Quote:
Originally Posted by ¤Adas¤
Try to not send these msgs to team 2? 
|
xD.
But i want this for a zombie mode. Where you can see zombie chatting but you cant understand.
Re: Encrypting text -
Steven82 - 18.05.2010
We can understand do exactly what he said
Re: Encrypting text -
Sergei - 18.05.2010
He wants to "encrypt" text. Basically changing characters to random ones, so nobody can understand that message.
Re: Encrypting text -
Sergei - 18.05.2010
You can't use 'sizeof(text)' because text length isn't static.
Re: Encrypting text -
dice7 - 18.05.2010
Quote:
Originally Posted by Steven82
We can understand do exactly what he said
|
Would you stop spamming every possible topic in this section. If you have no idea how to script or even help people, then don't post.
pawn Код:
public OnPlayerText(playerid, text[])
{
new str[128];
strcat(str, text, , 128);
for (new i = 0, j = strlen(text); i < j; i++) str[i]++;
for (new i = 0, j = GetMaxPlayers(), i < j; i++)
{
if (i == playerid) continue;
if (gTeam[i] == TEAM_ZOMBIE) SendPlayerMessageToPlayer(i, playerid, str);
else SendPlayerMessageToPlayer(i, playerid, text);
}
return 0;
}
Re: Encrypting text -
russo666 - 18.05.2010
I can't believe that this is working! Thank you all and specially to dice7!
[ĦŁ₣]ЉǾǖŦĦЗŁΛẄ thank you for opening my mind!
Re: Encrypting text -
Sergei - 18.05.2010
C'mon people we aren't in 05,06,07,08,09 anymore. There is working GetPlayerTeam native since 0.3a.