Jump to content
  • 0

Problema /exittraining


Mititel

Question

6 answers to this question

Recommended Posts

    if(strcmp(cmdtext, "/exittraining", true) == 0)
	{
      new virtualworld = PlayerInfo[playerid][pVirWorld];
      if(virtualworld == 400 || virtualworld == 401 || virtualworld == 402 || virtualworld == 403 || virtualworld == 404 || virtualworld == 405 || virtualworld == 406 || virtualworld == 407)//training
      {
	      new leader = PlayerInfo[playerid][pLeader];
          new member = PlayerInfo[playerid][pMember];
          if(member==15 || member==16 || member==17 || member==18 || member==8 || member==5 || member==6 || member==2)
          {
             //SendClientMessage(playerid, COLOR_GREEN, "You are not a gang member !");
             ResetPlayerWeapons(playerid);
             SetPlayerSpawn(playerid);
		     PlayerInfo[playerid][pVirWorld] = 0;
		     SetPlayerVirtualWorld(playerid,0);
             return 1;
          }
          else if(leader==15 || leader==16 || leader==17 || leader==18 || leader==8 || leader==5 || leader==6 || leader==2)
          {
             //SendClientMessage(playerid, COLOR_LIGHTGREEN, "You cannot use this command !");
             ResetPlayerWeapons(playerid);
             SetPlayerSpawn(playerid);
		     PlayerInfo[playerid][pVirWorld] = 0;
		     SetPlayerVirtualWorld(playerid,0);
             return 1;
          }
       }
       else
       {
           SendClientMessage(playerid, COLOR_LIGHTGREEN, "You are not in the training place!");
       }
	}

default.png
Link to comment
Share on other sites

Salut,incearca te rog asta si revino cu un reply daca merge.

[pawn]if(strcmp(cmdtext, "/exittraining", true) == 0)

    {

      new virtualworld = PlayerInfo[playerid][pVirWorld];

      if(virtualworld == 400 || virtualworld == 401 || virtualworld == 402 || virtualworld == 403 || virtualworld == 404 || virtualworld == 405 || virtualworld == 406 || virtualworld == 407)//training

      {

          new leader = PlayerInfo[playerid][pLeader];

          new member = PlayerInfo[playerid][pMember];

          if(member==15 || member==16 || member==17 || member==18 || member==8 || member==5 || member==6 || member==2 || leader=15 || leader=16 || leader=17 || leader=18 || leader=8 || leader=5 || leader=6 || leader=2)

          {

            //SendClientMessage(playerid, COLOR_GREEN, "You are not a gang member !");

            ResetPlayerWeapons(playerid);

            SetPlayerSpawn(playerid);

            PlayerInfo[playerid][pVirWorld] = 0;

            SetPlayerVirtualWorld(playerid,0);

            return 1;

          }

          else if(leader==15 || leader==16 || leader==17 || leader==18 || leader==8 || leader==5 || leader==6 || leader==2)

          {

            //SendClientMessage(playerid, COLOR_LIGHTGREEN, "You cannot use this command !");

            ResetPlayerWeapons(playerid);

            SetPlayerSpawn(playerid);

            PlayerInfo[playerid][pVirWorld] = 0;

            SetPlayerVirtualWorld(playerid,0);

            return 1;

          }

      }

      else

      {

          SendClientMessage(playerid, COLOR_LIGHTGREEN, "You are not in the training place!");

      }

    }[/pawn]

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.