Spawn help
#1

Hello Why i cant spawn and i cant select class/skin


Can some one help me plesae?
Reply
#2

Stop copying scripts and you'll don't have these kind of errors.. Check what is going on with OnPlayerConnect and with OnPlayerRequestClass
Reply
#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
#4

Hey how u get your your black box with "spawn" to look like that?
Reply
#5

ops Wrong lool wait let me post OnPlayerSpawn xD

Код:
public OnPlayerSpawn(playerid)
{
    new PlayerName[MAX_PLAYER_NAME],
    string[40];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    format(string, sizeof(string), "%s has spawned successfully.", PlayerName);
    SendClientMessageToAll(0xFFFFFFFF, string);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)