22.12.2012, 10:54
Hey Guys,
i made this script:
When i join, and on spawn when i click > arrow, i only See Green team, Not Yellow Team.
Please Help.
i made this script:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
switch(classid) // Switching between the classids
{
case 0:
{
SetPlayerTeam(playerid, Green); // Setting players team
GameTextForPlayer(playerid, "~g~Green Team", 2000, 0); // Screen msg for player to show what team
}
case 1:
{
SetPlayerTeam(playerid, Yellow); // Same as above
GameTextForPlayer(playerid, "~y~Yellow Team", 2000, 0);
}
}
return 1;
}
Please Help.