SA-MP Forums Archive
[SOLVED]Need help with an FS - 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: [SOLVED]Need help with an FS (/showthread.php?tid=136373)



[SOLVED]Need help with an FS - aleancuervo - 24.03.2010

SOLVED! Delete please.. Reall Thanks


Re: Need help with an FS - aleancuervo - 24.03.2010

Please, i need help :S


Re: Need help with an FS - Fabio11 - 24.03.2010

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




Re: Need help with an FS - aleancuervo - 24.03.2010

Thanks, but how to put it as an FS?


Re: Need help with an FS - Fabio11 - 24.03.2010

I attached it to this post


Re: Need help with an FS - aleancuervo - 24.03.2010

Real thanks mate!! Testinґ


Re: Need help with an FS - Fabio11 - 24.03.2010

No problem reply if there's any bug


Re: Need help with an FS - Lejo - 24.03.2010

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


Re: Need help with an FS - Fabio11 - 24.03.2010

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