[UNSOLVED] Final Problen To Complete new GM!
#3

Quote:
Originally Posted by Weirdosport
Well the code you have is written as a normal function, when OnPlayerSpawn is actually a callback. This means it should have the word "public" in front of it. Try it like this:

pawn Код:
//Top of page
new name[24];

public OnPlayerSpawn(playerid)
{
    if(pInfo[Logged] == 1) //you need to change pInfo to the variable u use
    {
       
        GetPlayerName(playerid,name,24);
        if (!strcmp(name, "Slash01", true))
        {
            SetPlayerColor(playerid,YourColor);//You need to Change YourColor to the color u wanna use
        }
    }
    return 1;
}
i knew that :/ llol

anyway, what do i change "pinfo to?"
and mirror for Mapicon.inc?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)