cmon guys i realy need help ..
#1

look i am trying to select the country before , then i choose what i want to be .. but it doesnt work .. i used the grandlarc gm but i cant set it up .. can anyone help me ?
look there is hte pastebin .. pls help me . thanks

http://pastebin.com/z6LCrRRV
Reply
#2

Quote:
Originally Posted by [SU
BP13 ]
Patience is a virtue.
True ... True.
Reply
#3

you dont have any AddPlayerClass in OnGameModeInit()
Reply
#4

Quote:
Originally Posted by adsy
you dont have any AddPlayerClass in OnGameModeInit()
yes there is .. go to line 804
Reply
#5

sorry my bad
missed that as its away from the rest
Reply
#6

why are there 2 OnPlayerRequestClass ??
Reply
#7

Quote:
Originally Posted by adsy
why are there 2 OnPlayerRequestClass ??
If that it true, it is indeed not working :P.
Youe NEVER can have 2 callbacks
Reply
#8

no .. i put these to the first ones these brackets /* */ to make it... u know .. i got no mistakes but the only thing i cant do is that .. to choose the country first then to choose what u want to be .. a medic general or soldier ...
Reply
#9

so can anyone find out how to do it ?
Reply
#10

i first want to choose the city then the job ... like first choose British .. then choose medic or general or soldier....
i dont know how to do it .. loook i got this one playerrequestclass
Код:
public OnPlayerRequestClass(playerid, classid)
{
  if(IsPlayerNPC(playerid)) return 1;

	if(gPlayerHasCitySelected[playerid]) {
		ClassSel_SetupCharSelection(playerid);
		return 1;
	} else {
		if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
			TogglePlayerSpectating(playerid,1);
  		TextDrawShowForPlayer(playerid, txtClassSelHelper);
  		gPlayerCitySelection[playerid] = -1;
		}
 	}

	gPlayerClass[playerid] = classid;
	switch (classid) {
	  case 0:
	    {
				GameTextForPlayer(playerid, "~w~General", 500, 6);
				{SetPlayerPos(playerid,354.4405,2030.4860,23.8750);
  	     SetPlayerFacingAngle(playerid, 357.3909);
	       SetPlayerCameraPos(playerid, 354.4252,2032.4153,24.0223);
  	     SetPlayerCameraLookAt(playerid, 354.4405,2030.4860,23.8750);
         gTeam[playerid] = BRITISH_GENERAL;
  	     CreateExplosion(354.4405,2030.4860,23.8750, 12, 2); }
			}
		case 1:
	    {
				GameTextForPlayer(playerid, "~w~Soldier", 500, 6);
				{SetPlayerPos(playerid,354.4405,2030.4860,23.8750);
  	     SetPlayerFacingAngle(playerid, 357.3909);
	       SetPlayerCameraPos(playerid, 354.4252,2032.4153,24.0223);
  	     SetPlayerCameraLookAt(playerid, 354.4405,2030.4860,23.8750);
  	     gTeam[playerid] = BRITISH_SOLDIER;
  	     CreateExplosion(354.4405,2030.4860,23.8750, 12, 2);}
        
		  }
		case 2:
	    {
				GameTextForPlayer(playerid, "~w~British Army Soldier", 500, 6);
				{SetPlayerPos(playerid,354.4405,2030.4860,23.8750);
  	     SetPlayerFacingAngle(playerid, 357.3909);
	       SetPlayerCameraPos(playerid, 354.4252,2032.4153,24.0223);
  	     SetPlayerCameraLookAt(playerid, 354.4405,2030.4860,23.8750);
  	     gTeam[playerid] = BRITISH_MEDIC;
  	     CreateExplosion(354.4405,2030.4860,23.8750, 12, 2); }
      }
		case 3:
	    {
				GameTextForPlayer(playerid, "~b~general", 500, 6);
				{SetPlayerPos(playerid, 358.4248,2434.5625,17.0588);
         SetPlayerFacingAngle(playerid, 298.3950);
	       SetPlayerCameraPos(playerid, 361.6220,2436.0774,16.7443);
  	     SetPlayerCameraLookAt(playerid, 358.4248,2434.5625,17.0588);
  	     gTeam[playerid] = FRANCE_GENERAL;
  	     CreateExplosion(358.4248,2434.5625,17.0588, 12, 2); }
		  }
		case 4:
	    {
				GameTextForPlayer(playerid, "~b~Soldier", 500, 6);
				{SetPlayerPos(playerid, 358.4248,2434.5625,17.0588);
         SetPlayerFacingAngle(playerid, 298.3950);
	       SetPlayerCameraPos(playerid, 361.6220,2436.0774,16.7443);
  	     SetPlayerCameraLookAt(playerid, 358.4248,2434.5625,17.0588);
  	     gTeam[playerid] = 	FRANCE_SOLDIER;
  	     CreateExplosion(358.4248,2434.5625,17.0588, 12, 2); }
			}
    case 5:
	    {
				GameTextForPlayer(playerid, "~b~medic", 500, 6);
				{SetPlayerPos(playerid, 358.4248,2434.5625,17.0588);
         SetPlayerFacingAngle(playerid, 298.3950);
	       SetPlayerCameraPos(playerid, 361.6220,2436.0774,16.7443);
  	     SetPlayerCameraLookAt(playerid, 358.4248,2434.5625,17.0588);
  	     gTeam[playerid] = FRANCE_MEDIC;
  	     CreateExplosion(358.4248,2434.5625,17.0588, 12, 2); }
			}
		
	    
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)