[AJUDA]Comando
#1

Ola A Todos, alguem pode me ajudar em um comando....


Quando o jogador digita o comando, todos vгo para a msm pos Com certeza oq eu fiz aqui nao esta certo alguem pode me falar aonde й o erro
Код:
new ladoA[MAX_PLAYER];
new ladoB[MAX_PLAYER];

if (strcmp("/irevento", cmdtext, true, 10) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(EventoCriado == 1)
{
    if(ladoA[playerid] == 5)// time do jogador equipe A maxi 5 players
    {
   	SendClientMessage(playerid, 0x008000AA, "Lado A ja esta cheio");
   	}
}else{ if(EventoCriado == 1)
{
	SetPlayerPos(playerid, -3745.82006836,465.29635620,27.87695312); // Pos da equipe A
 	ladoA[playerid]++;
 	noevento[playerid] = 1;
}
 	return 1;
}
    if(ladoB[playerid] == 5) // time do jogador equipe B maximo 5 players
    {
    SendClientMessage(playerid, 0x008000AA, "Lado do Exercito ja esta cheio");
}
   	}else{ if(EventoCriado == 1)
{
	SetPlayerPos(playerid, -3657.08520508,431.72711182,32.85673141); // pos da equipe B
 	ladoB[playerid]++;
   	SendClientMessage(playerid, 0x008000AA, "Lado B ja esta cheio");
   	}
 	return 1;
}
Grato Para quem me ajudar ai vlw...
Reply
#2

pawn Код:
if(ladoA == 5) return 1;
if(ladoB < 5) SetPlayerPos(playerid, pX, pY, pZ);
if(ladoA == 5 || ladoB == 5) SendClientMessage(playerid, 0xE31919FF, "fudeu manolo tб tudo full riariariariar");
O cуdigo vai verificar se tem 5 pessoas no lado a e retorna 1 e verifica se tem menos de 5 no lado b se tiver menos q 5 seta ele la '-'
Reply
#3

Shickcard Obrigado man Mais vc sabe como posso adapitar em meu comando isso nao tenho ideia


Obrigado
Reply
#4

pawn Код:
new ladoA[MAX_PLAYERS];
new ladoB[MAX_PLAYERS];

if(strcmp("/irevento", cmdtext, true, 10) == 0)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), PASTA_CONTAS, aname);
    if(EventoCriado != 1) return SendClientMessage(playerid, 0x008000AA, "Nгo tem evento criado manolo!");
    if(ladoA[playerid] == 5) return 1;
    if(ladoA[playerid] < 5)
    {
        SetPlayerPos(playerid, -3745.82006836,465.29635620,27.87695312);
        ladoA[playerid]++;
        noevento[playerid] = 1;
        return 1;
    }
    if(ladoB[playerid] == 5) return 1;
    if(ladoB[playerid] < 5)
    {
        SetPlayerPos(playerid, -3657.08520508,431.72711182,32.85673141); // pos da equipe B
    ladoB[playerid]++;
        return 1;
    }
    if(ladoA[playerid] == 5 || ladoB[playerid] == 5) return SendClientMessage(playerid, 0x008000AA, "Tudo full manolo!");
    return 1;
}
BBCode do [PAWN*] [/PAWN] do fуrum ta bugged e.e
Reply
#5

Obrigado vo testar e estudar aqui vlw Shickcard
Reply
#6

;3 ^^
Reply
#7

Shickcard й assim msm q qria saber mano, coloquei um jogador para cada tipe mais ai quando eles digita o comando os 2 vam para a msm pos ou seja para o msm lado [lado A] sera q й oq sabe me dizer ?
Reply
#8

Esse comando que adaptei ele checa se o lado A tб cheio, se tiver seta o player no lado B, mais se os dois lados estiverem FULL retorna uma mensagem para o player.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)