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

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)