[Ayuda] Como dar comando a 2 equipos
#1

hola alguien me puede ayudar a poner un comando que funcione en 2 equipos?
asi lo tengo yo:

Quote:

if(strcmp(cmd, "/gate", true) == 0)
{
if(gTeam[playerid] == TEAM_ARMY)
{

Donde dice Team Army quiero agregar a otro team! es TEAM_ADMIN osea que: TEAM_ARMY Y TEAM_ADMIN puedan poner ese comando alguien me puede ayudar?
Reply
#2

Usa esto:
pawn Код:
if(strcmp(cmd, "/gate", true) == 0)
{
    if(gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_ADMIN)
    {
    }
    return 1;
}
Reply
#3

no funciono aca le paso el comando completo:


Код:
	if(strcmp(cmd, "/gate", true) == 0)
	{
 		if(gTeam[playerid] == TEAM_ARMY)
		{
	        if(PlayerToPoint(25.0, playerid,2720.827,-2414.449,13.46094))
	        {
	            if(ArmyGateStatus == 0)
	            {
					MoveObject(igate2,2720.827,-2414.449,13.46094,3.0);
					GameTextForPlayer(playerid,"~w~Gate Opening, please wait...",4000,3);
					ArmyGateStatus = 1; //i.e open
				}
				else
				{
				    MoveObject(igate2,2720.827,-2405.449,13.46094,2.5);
				   	GameTextForPlayer(playerid,"~w~Gate Closing, please wait...",4000,3);
				   	ArmyGateStatus = 0;
				}
			}
	        else SendClientMessage(playerid,COLOR_RED,"You need to be near the gate to move it");
		}
Reply
#4

pawn Код:
if(strcmp(cmd, "/gate", true) == 0)
    {
        if(gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_ADMIN) //Como bien dijo m1tux3r
        {
            if(PlayerToPoint(25.0, playerid,2720.827,-2414.449,13.46094))
            {
                if(ArmyGateStatus == 0)
                {
                    MoveObject(igate2,2720.827,-2414.449,13.46094,3.0);
                    GameTextForPlayer(playerid,"~w~Gate Opening, please wait...",4000,3);
                    ArmyGateStatus = 1; //i.e open
                }
                else
                {
                    MoveObject(igate2,2720.827,-2405.449,13.46094,2.5);
                    GameTextForPlayer(playerid,"~w~Gate Closing, please wait...",4000,3);
                    ArmyGateStatus = 0;
                }
            }
            else SendClientMessage(playerid,COLOR_RED,"You need to be near the gate to move it");
        }
o Prueba(No creo que funcione)
pawn Код:
if(strcmp(cmd, "/gate", true) == 0)
    {
        if(gTeam[playerid] == TEAM_ARMY || TEAM_ADMIN)
        {
            if(PlayerToPoint(25.0, playerid,2720.827,-2414.449,13.46094))
            {
                if(ArmyGateStatus == 0)
                {
                    MoveObject(igate2,2720.827,-2414.449,13.46094,3.0);
                    GameTextForPlayer(playerid,"~w~Gate Opening, please wait...",4000,3);
                    ArmyGateStatus = 1; //i.e open
                }
                else
                {
                    MoveObject(igate2,2720.827,-2405.449,13.46094,2.5);
                    GameTextForPlayer(playerid,"~w~Gate Closing, please wait...",4000,3);
                    ArmyGateStatus = 0;
                }
            }
            else SendClientMessage(playerid,COLOR_RED,"You need to be near the gate to move it");
        }
Reply
#5

Perfecto Me Funciono Gracias!!! m1tux3r y los demas por su ayuda
Reply
#6

Eso misno es lo que yo queria xD hoye we cuanto llevas en tu server heho aver si podemos ser socios
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)