HELP Command for Change Class HELP
#1

Hello I have these classes

Код HTML:
OnPlayerSpawn 
{ 
switch(gPlayerClass[playerid])
    {
        case ASSAULT:
        {
            TogglePlayerControllable(playerid, 1);
	        ResetPlayerWeapons(playerid);
	        GivePlayerWeapon(playerid, 31, 200);//m4
	        GivePlayerWeapon(playerid, 29, 100);//mp5
	        GivePlayerWeapon(playerid, 27, 100);//  combat
	        GivePlayerWeapon(playerid, 24, 70);//deagle
        }
        case SNIPER:
        {
            TogglePlayerControllable(playerid, 1);
	        ResetPlayerWeapons(playerid);
	        GivePlayerWeapon(playerid, 23, 200);//silent pistol
	        GivePlayerWeapon(playerid, 34, 250);//sniper
	        GivePlayerWeapon(playerid, 29, 250);//mp5
	        GivePlayerWeapon(playerid, 4, 1);//knife
	        RemovePlayerMapIcon(playerid, 0);
         	SetPlayerColor(playerid,COLOR_TRANSPARENT_MAP);
		}
	    case MEDIC:
		{
          	if(GetPlayerScore(playerid) >= 500){   // or if you have one variable  for scores PlayerInfo[playerid][score] >= 500 ...
          	TogglePlayerControllable(playerid, 1);
	  		ResetPlayerWeapons(playerid);
	 	    GivePlayerWeapon(playerid, 33, 200);
	  		GivePlayerWeapon(playerid, 22, 200);
	  		GivePlayerWeapon(playerid, 25, 200);
	  		GivePlayerWeapon(playerid, 11, 2);
          	}
          	else return SendClientMessage(playerid,-1,"You are not have 500+ scores for select this class");
			}
    }
return
But how to make a command which brings you to this selection?
NOTE THIS is not Team select! This is a class selection!!
Help mee
Reply


Messages In This Thread
HELP Command for Change Class HELP - by Charalambos26 - 28.05.2015, 15:40
Re: HELP Command for Change Class HELP - by FplayerGR - 28.05.2015, 15:51
Re: HELP Command for Change Class HELP - by Charalambos26 - 28.05.2015, 16:11
Re: HELP Command for Change Class HELP - by Azula - 28.05.2015, 16:16

Forum Jump:


Users browsing this thread: 1 Guest(s)