13.03.2010, 06:14
As i said before .. i have started it myself and i just need a bit of help .
here i want to choose the country
And then .. if my idea is right .. still it didnt work .. this si for France teams
And this is for the British
so what should i add ..? cuz it didnt work .. i tested it .
here i want to choose the country
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid,111.345,3456.71341,22.6224); SetPlayerFacingAngle(playerid, 128.0980); SetPlayerInterior(playerid, 0); SetPlayerCameraPos(playerid,9.12363,173115.1122,22.6114233); SetPlayerCameraLookAt(playerid,1231.954277,1742316.712391,22.6223422); switch (classid) { case 0: { GameTextForPlayer(playerid, "~g~FRANCE", 5000,3); OnPlayerRequestClass2(playerid, classid); } case 1: { GameTextForPlayer(playerid, "~g~BRITISH", 5000,3); OnPlayerRequestClass3(playerid, classid); } } return 1; }
Код:
forward OnPlayerRequestClass2(playerid, classid); public OnPlayerRequestClass2(playerid, classid){ switch (classid) { case 0: { GameTextForPlayer(playerid, "~g~French Soldier", 5000,3); } case 1: { GameTextForPlayer(playerid, "~g~French General", 5000,3); } } return 1; }
Код:
forward OnPlayerRequestClass3(playerid, classid); public OnPlayerRequestClass3(playerid, classid){ switch (classid) { case 0: { GameTextForPlayer(playerid, "~g~British Soldier", 5000,3); } case 1: { GameTextForPlayer(playerid, "~g~British General", 5000,3); } } return 1; }