Help with textdraw and colors
#6

Code:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
 {
    SelectTextDraw(playerid,COLOR_RED);
	if(_:clickedid != INVALID_TEXT_DRAW)
		{
			if(clickedid == Soldier)
		    {
		         {
			        if(GetPlayerScore(playerid) >= 0)//if player have 0 score then  he can choose this class
						{
								SendClientMessage(playerid, COLOR_GREEN, "You chose the Soldier as your class.");
								TextDrawShowForPlayer(playerid,SoldierBox);
								TextDrawShowForPlayer(playerid,SoldierInfo);
								TextDrawShowForPlayer(playerid,Spawn);
					            gPlayerClass[playerid] = SOLDIER;//setting the class to soldier
					            PickedClass[playerid] = 1;
					            SetPlayerVirtualWorld(playerid, 0);
					            SetPlayerArmour(playerid,99);
								ResetPlayerWeapons(playerid);
								GivePlayerWeapon(playerid, 31, 200);
								GivePlayerWeapon(playerid, 25, 100)
								GivePlayerWeapon(playerid, 24, 70);
								TextDrawHideForPlayer(playerid,Box);
								TextDrawHideForPlayer(playerid,Soldier);
								TextDrawHideForPlayer(playerid,Class);
								TextDrawHideForPlayer(playerid,JetTrooper);
						}

                  }

			}

		}
		
  	if(clickedid == Spawn)
  	{


			TextDrawHideForPlayer(playerid,SoldierBox);
			TextDrawHideForPlayer(playerid,SoldierInfo);
   			TextDrawHideForPlayer(playerid,Spawn);
			SpawnPlayer(playerid);
			CancelSelectTextDraw(playerid);
            
  	}
    return 1;
}
Reply


Messages In This Thread
Help with textdraw and colors - by Nabster - 24.02.2015, 09:26
Re: Help with textdraw and colors - by Ritzy2K - 24.02.2015, 09:42
Re: Help with textdraw and colors - by De4dpOol - 24.02.2015, 09:47
Re: Help with textdraw and colors - by Nabster - 24.02.2015, 15:02
Re: Help with textdraw and colors - by De4dpOol - 24.02.2015, 15:10
Re: Help with textdraw and colors - by Nabster - 24.02.2015, 15:32
Re: Help with textdraw and colors - by De4dpOol - 24.02.2015, 15:38
Re: Help with textdraw and colors - by Nabster - 24.02.2015, 16:13
Re: Help with textdraw and colors - by Nabster - 25.02.2015, 02:01
Re: Help with textdraw and colors - by De4dpOol - 25.02.2015, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)