28.05.2015, 15:40
Hello I have these classes
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
Код 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
NOTE THIS is not Team select! This is a class selection!!
Help mee