public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); if(classid == 105 || classid == 106 || classid == 107) { GameTextForPlayer(playerid,"~g~Army",5000,5); } else if(classid == 102 || classid == 103 || classid == 104) { GameTextForPlayer(playerid,"~r~Terrorists",5000,5); } return 1; } public SetupPlayerForClassSelection(playerid) { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,258.4893,-41.4008,1002.0234); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234); SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); }
public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); SetPlayerTeamFromClass(playerid,classid); if(classid == 0 || classid == 1) { GameTextForPlayer(playerid,"~g~TEAM ~w~ONE",1000,5); } else if(classid == 2 || classid == 3) { GameTextForPlayer(playerid,"~r~TEAM ~w~TWO",1000,5); } return 1; }
Originally Posted by MrXavier
thats the most basic I can get it. Tell me if you want a certain few names, and I will script it for ya.
|
Originally Posted by Nameless303
Quote:
|
public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); if(classid == 105 || classid == 106 || classid == 107) { GameTextForPlayer(playerid,"~g~Army",5000,5); } else if(classid == 102 || classid == 103 || classid == 104) { GameTextForPlayer(playerid,"~r~Terrorists",5000,5); } return 1; } public SetupPlayerForClassSelection(playerid) { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,258.4893,-41.4008,1002.0234); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234); SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); }