Spawn help
#3

Look Here is OnPlayerRequestClass
Код:
public OnPlayerRequestClass(playerid,classid)
{
    if(classid == 3 && !IsPlayerAdmin(playerid))
    {
        SendClientMessage(playerid, COLOR_RED, "This skin is only for admins!");
        return 0;
    }
        return 1;
}
aand here for onplayerconnect

Код:
public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s has joined the server. Welcome!",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
There is no errors right?
Reply


Messages In This Thread
Spawn help - by RedRex - 21.02.2016, 12:16
Re: Spawn help - by ReshiramZekrom - 21.02.2016, 12:18
Re: Spawn help - by RedRex - 21.02.2016, 12:22
Re: Spawn help - by Joron - 21.02.2016, 12:24
Re: Spawn help - by RedRex - 21.02.2016, 12:26

Forum Jump:


Users browsing this thread: 1 Guest(s)