No class selection.
#1

Hi, I want to know if I can turn class selection off once a player joins the server so he will just spawn in a skin set at a location set without having to choose it. Thanks.
Reply
#2

Try:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}
Reply
#3

Didn't work... :S
Reply
#4

try it under OnPlayerConnect
Reply
#5

Didn't work... :3
Reply
#6

Then try:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetTimerEx("AntiClass", 10, 0, "d", playerid);
    return 1;
}
At Bottom of your code:
pawn Код:
forward AntiClass(playerid);
public AntiClass(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
Reply
#7

Try:
on top:
pawn Код:
#define myskinid 0 // or other skin id
on ur callback:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerSkin(playerid, myskinid);
    SpawnPlayer(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)