Mask System IC CHAT +REP
#1

<REMOVED>
Reply
#2

pawn Код:
if(Masked[playerid] == 1)
{
    format(string, sizeof(string), "%s Stranger says: %s", accent, text);
    SendClientMessageEx(i, COLOR_FADE1, string);
    return 0;
}
Something like that?
Reply
#3

<REMOVED>
Reply
#4

Errors?
If it's the string error just add
new string[128];
just before the format
Reply
#5

<REMOVED>
Reply
#6

Quote:
Originally Posted by ShadeWalker
Посмотреть сообщение
2 Warnings
Код:
./includes/callbacks.pwn(6674) : warning 217: loose indentation
./includes/callbacks.pwn(6676) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
and didn't work IG, leave it i think it's hard or u need pro scripter btw thank you for helping
Did you copy and paste?
(Let me get a blank gm hold for one second)
2nd warning: remove new string[128];
1st. Indent when you C&P The two { are over to the left.

pawn Код:
#include <a_samp>

new Masked[MAX_PLAYERS];

main(){}

public OnPlayerText(playerid, text[])
{
    if(Masked[playerid] == 1)
    {
    new string[128];
    format(string, sizeof(string), "Stranger says: %s", text);
    SendClientMessageToAll(-1, string);
    return 0;
    }
    return 0;
}

public OnPlayerConnect(playerid)
{
    Masked[playerid]=1;
    return 1;
}
Worked for me...
Reply
#7

Just make your sendername function return "stranger" if the player is masked, and return his actual name if not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)