Teleport
#3

Код:
    if(strcmp(cmd, "/pddown", true) == 0)
	{
	  if(gTeam[playerid] == 2 || IsACop(playerid))
       {
      if(!PlayerToPoint(246.3505, 87.48753, 1003.641);
      SendClientMessage(playerid, COLOR, "you are not in the right position");
      }
	  {
 			if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			{
            if(PlayerToPoint(246.3505, 87.48753, 1003.641);
			SetPlayerPos(playerid, 246.3505, 87.48753, 1003.641);
			}
			else
			{
			SendClientMessage(playerid, COLOR_GRAD1, "  You are not cop!");
			}
		}
		return 1;
	}
Код:
	if(strcmp(cmd, "/pdup", true) == 0)
	{
	  if(gTeam[playerid] == 2 || IsACop(playerid))
	  {
      if(!PlayerToPoint(246.3505, 87.48753, 1003.641);
      {
      SendClientMessage(playerid, "your not in the right position);
			if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			{
            SetPlayerPos(playerid, 1556.78, -1675.778, 28.39545);
            if(PlayerToPoint(1556.78, -1675.778, 28.39545);
			}
			else
			{
			SendClientMessage(playerid, COLOR_GRAD1, "  You are not cop!");
			}
		}
		return 1;
	}
Im also a script beginner, but i dont know if thats right, its untested.
Reply


Messages In This Thread
Teleport - by Martinike - 29.03.2009, 20:26
Re: Teleport - by Martinike - 29.03.2009, 21:20
Re: Teleport - by harly - 29.03.2009, 22:11
Re: Teleport - by ICECOLDKILLAK8 - 29.03.2009, 22:13
Re: Teleport - by Martinike - 29.03.2009, 22:20
Re: Teleport - by harly - 29.03.2009, 22:20
Re: Teleport - by Martinike - 29.03.2009, 22:23
Re: Teleport - by ICECOLDKILLAK8 - 29.03.2009, 22:25
Re: Teleport - by Martinike - 29.03.2009, 22:25
Re: Teleport - by harly - 29.03.2009, 22:27

Forum Jump:


Users browsing this thread: 1 Guest(s)