04.11.2010, 10:53
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.
public OnPlayerRequestClass(playerid, classid)
{
SpawnPlayer(playerid);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetTimerEx("AntiClass", 10, 0, "d", playerid);
return 1;
}
forward AntiClass(playerid);
public AntiClass(playerid)
{
SpawnPlayer(playerid);
return 1;
}
#define myskinid 0 // or other skin id
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerSkin(playerid, myskinid);
SpawnPlayer(playerid);
return 1;
}