[SOLVED]Need help with an FS
#1

SOLVED! Delete please.. Reall Thanks
Reply
#2

Please, i need help :S
Reply
#3

hmmm this?

pawn Код:
// Top

Masked[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    Masked[playerid] = 0;
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/mask", true))
    {
        Masked[playerid] = 1;
        SendClientMessage(playerid,0xFFFFF,"  You are masked now");
        Return 1;
    }
    if(!strcmp(cmdtext, "/unmask", true))
    {
        Masked[playerid] = 0;
        SendClientMessage(playerid,0xFFFFF,"  You are unmasked now");
        Return 1;
    }
    return 0;
}

public OnPlayerText(playerid, text[])
{
    for(new i=0;i<=MAX_PLAYERS; i++)
    {
        if(Masked[playerid] == 1)
        {
            new string[256];
            format(string,256,"Masked Man: %s",text[0]);
            SendClientMessage(i,GetPlayerColor(playerid),string);
        } else Return 1;
    }
}

Reply
#4

Thanks, but how to put it as an FS?
Reply
#5

I attached it to this post
Reply
#6

Real thanks mate!! Testinґ
Reply
#7

No problem reply if there's any bug
Reply
#8

Hmm, I know what he is wanting, and you've done most of that. But, I believe you forgot the part where it hides the players nametag when he's in /mask. I imagine this is for a RP server, so...
Reply
#9

Quote:
Originally Posted by Shakur_
Hmm, I know what he is wanting, and you've done most of that. But, I believe you forgot the part where it hides the players nametag when he's in /mask. I imagine this is for a RP server, so...
You're right, but in the post he doesn't ask for any hidding names feature. So I thought it was necesary
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)