[Ajuda] Evento trazer jogadores.
#1

Eae povгo! й o seguinte estou com um Sistema aqui de evento quando dб o comando '/e_Trazer' buga tudo, tipo, sу trais um jogador(a) quando tб em um interior quando trais ele cai pro chгo, e quando dб o comando fora de um interior ele nгo trais.

Lembrando que eu uso o comando '/e_abrir' e depois uso o '/e_trazer', que buga!


Код:
   if(strcmp(cmd,"/E_trazer",true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			new Float:plocx,Float:plocy,Float:plocz;
			for(new i = 0; i < MAX_PLAYERS; i++)
	        {
               if(IsPlayerConnected(i))
               {
					if (PlayerInfo[playerid][pAdmin] >= 4)
					{
					GetPlayerPos(playerid,plocx,plocy,plocz);
					if(Pevento[i] == 1)
                      {
						if(PlayerInfo[playerid][pInt] > 0)
						{
							SetPlayerInterior(i,PlayerInfo[playerid][pInt]);
							PlayerInfo[i][pInt] = PlayerInfo[playerid][pInt];
							PlayerInfo[i][pLocal] = PlayerInfo[playerid][pLocal];
						}
						if(PlayerInfo[playerid][pInt] == 0)
						{
							SetPlayerInterior(i,0);
						}
						if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0) //the highest land point in sa = 526.8
						{
							SetPlayerInterior(i,PlayerInfo[playerid][pInt]);
							PlayerInfo[i][pInt] = PlayerInfo[playerid][pInt];
						}
						if (GetPlayerState(i) == 2)
						{
							TelePos[i][0] = 0.0;
							TelePos[i][1] = 0.0;
							SetPlayerPos(i,plocx,plocy+2,plocz);
						}
					   }
					  SendClientMessage(i,COLOR_GRAD1,"<!> Vocк foi teleportado para o evento.");
					}
					else
					{
						GameTextForPlayer(playerid, "~r~Voce nao e um admin",2100,3);
					}
				}
			}
		}
		else
		{
			SendClientMessage(playerid,COLOR_ERRO, "ERRO: {FFFFFF}Vocк nвo esta logado ou registrado.");
		}
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)