23.07.2013, 19:18
Hello everyone, how would I go about spawning the player after setting the teams?
Here's my current code:
All thanks appreciated, Farrow.
Here's my current code:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
SendClientMessage(playerid, Colour_White, "Class Test 1");
SetPlayerTeam(playerid, 1);
SetPlayerColor(playerid, 0x1B67E0FF);
} else if(classid == 1) {
SendClientMessage(playerid, Colour_White, "Class Test 2");
SetPlayerTeam(playerid, 2);
} else {
SendClientMessage(playerid, Colour_White, "Class Test 1");
SetPlayerTeam(playerid, 1);
}
return 0;
}
public OnPlayerRequestSpawn(playerid)
{
SendClientMessage(playerid, Colour_White, "Spawn Button Test");
return 1;
}