SA-MP Forums Archive
Help - 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)
+--- Thread: Help (/showthread.php?tid=520678)



Help - madalin912 - 19.06.2014

How do you get a new player them appear in chat helpers ?


Re: Help - madalin912 - 20.06.2014

Help ?


Re: Help - NaClchemistryK - 20.06.2014

You want to know how to let others know whether a player is a helper or not?
You can simply change his name colour. SetPlayerColour();


Re: Help - madalin912 - 20.06.2014

I want to give message helpers, when connecting a new player

Exemple:

pawn Код:
if (PlayerInfo[playerid][pReg] == 0)
        {
        format(string2, sizeof(string2), "AdmWarning: Un player nou se inregistreaza",playername2, playersip);
        SendHelperMessage(COLOR_YELLOW2,string2);
        }

But that does not work...


Re: Help - NaClchemistryK - 20.06.2014

pawn Код:
//under OnPlayerConnect
if(PlayerInfo[playerid][pReg] == 0)
{
    for(new helperid; helperid < 500; helperid++)
    {
        if (PlayerInfo[helperid][pHelper] == 1)//Change the pHelper to your own enum name
        {
            SendClientMessage(helperid,-1,"AdmWarning: Un player nou se inregistreaza");
        }
    }
}
This will send a message to the helper "AdmWarning: Un player nou se inregistreaza"
Edited again.


Re: Help - madalin912 - 20.06.2014

pawn Код:
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6162) : error 017: undefined symbol "string2"
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6162) : error 017: undefined symbol "string2"
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6162) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6162) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.



Re: Help - NaClchemistryK - 20.06.2014

I edited the script. Take it.
Btw, you had to create a new var called string2 and I don't know why you are trying to format it. Amyways the new one must be fixed


Re: Help - madalin912 - 20.06.2014

pawn Код:
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6163) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6163) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6164) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6156) : warning 203: symbol is never used: "string2"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.



Re: Help - NaClchemistryK - 20.06.2014

Edited. Take the last one. If that doesn't work then It's the compiler's fault.


Re: Help - madalin912 - 20.06.2014

pawn Код:
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6139) : warning 203: symbol is never used: "string2"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:          11984 bytes
Code size:          2673968 bytes
Data size:          7256508 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 9958844 bytes

1 Warning.