OnPlayerRequestClass - Need Help!
#1

Hey Guys,

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;
}
When i join, and on spawn when i click > arrow, i only See Green team, Not Yellow Team.
Please Help.
Reply


Messages In This Thread
OnPlayerRequestClass - Need Help! - by Avi Raj - 22.12.2012, 10:54
Re: OnPlayerRequestClass - Need Help! - by Infinity90 - 22.12.2012, 11:12
Re: OnPlayerRequestClass - Need Help! - by Avi Raj - 22.12.2012, 11:31
Re: OnPlayerRequestClass - Need Help! - by Infinity90 - 22.12.2012, 11:35
Re: OnPlayerRequestClass - Need Help! - by [HK]Ryder[AN] - 22.12.2012, 11:37
Re: OnPlayerRequestClass - Need Help! - by Avi Raj - 22.12.2012, 11:41
Re: OnPlayerRequestClass - Need Help! - by Avi Raj - 22.12.2012, 11:53
Re: OnPlayerRequestClass - Need Help! - by [HK]Ryder[AN] - 22.12.2012, 14:28
Re: OnPlayerRequestClass - Need Help! - by Faisal_khan - 22.12.2012, 16:17
Re: OnPlayerRequestClass - Need Help! - by Avi Raj - 22.12.2012, 16:27

Forum Jump:


Users browsing this thread: 2 Guest(s)