[Pomoc] Komande za teleport?HITNO

Započeo vlada966, Jun 03, 2012, 11:04:44 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Kako da napravim teleport na primer do burga do banke do policijue.....? :D

Citat: vlada966 poslato Jun 03, 2012, 11:04:44 PRE PODNE
Kako da napravim teleport na primer do burga do banke do policijue.....? :D
if(strcmp(cmd, "/gotols", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if(PlayerInfo[playerid][pAdmin] >= 3 || PlayerInfo[playerid][pGameMaster] >= 3)
         {
            if (GetPlayerState(playerid) == 2)
            {
               new tmpcar = GetPlayerVehicleID(playerid);
               SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
               TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
               SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
            }
            SendClientMessage(playerid, COLOR_GRAD1, "   Vi ste se teleportovali !");
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "  Niste ovlasteni da koristite ovu komandu !");
         }
      }
      return 1;
   }
Tako i za ostale samo koordinate izmjenis

Citat: Djolle poslato Jun 03, 2012, 11:11:52 PRE PODNE
Citat: vlada966 poslato Jun 03, 2012, 11:04:44 PRE PODNE
Kako da napravim teleport na primer do burga do banke do policijue.....? :D
if(strcmp(cmd, "/gotols", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if(PlayerInfo[playerid][pAdmin] >= 3 || PlayerInfo[playerid][pGameMaster] >= 3)
         {
            if (GetPlayerState(playerid) == 2)
            {
               new tmpcar = GetPlayerVehicleID(playerid);
               SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
               TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
               SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
            }
            SendClientMessage(playerid, COLOR_GRAD1, "   Vi ste se teleportovali !");
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "  Niste ovlasteni da koristite ovu komandu !");
         }
      }
      return 1;
   }
Tako i za ostale samo koordinate izmjenis
HVALA PUNO MOZE LOCK!!! :D