Author Topic: Easy question : Teleport commands  (Read 3337 times)

0 Members and 1 Guest are viewing this topic.

Offline killvn1

  • Street Thug
  • *
  • Posts: 33
    • View Profile
Easy question : Teleport commands
« on: December 28, 2010, 01:28:23 pm »
I use Script Gups1.16A and it have !goto commands
but i want when i player type !goto ID then after 5 seconds teleport commands active
How can i do it ?

yazeen

  • Guest
Re: Easy question : Teleport commands
« Reply #1 on: March 13, 2011, 06:02:00 pm »
Use

SetTimer(GOTO,5000,)

too lazy to make all

Offline Scripter

  • Wiseguy
  • **
  • Posts: 62
    • View Profile
Re: Easy question : Teleport commands
« Reply #2 on: March 13, 2011, 06:39:48 pm »
Use

SetTimer(GOTO,5000,)

too lazy to make all
meh not works error

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: Easy question : Teleport commands
« Reply #3 on: March 13, 2011, 09:10:21 pm »
Easy
enum pInfo
{
others,
bla,
Teleporting
}
add Teleporting
then

public Armyloc()
{
for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) && PlayerInfo[Teleporting] == 1)
      {
      SetPlayerPos(i, -1718.1532,-245.1667,14.8683,1.00);
      SendClientMessage(i,BLUE,"You Have been Teleported to Army Base. Cost 1000$");
      }
      }
      }
then add
OnPlayerText(playerid, cmdtext[])
{
else if (strcmp(cmd, "!army", true) == 0)
   {
   tmp = strtok(cmdtext, idx);
      if (!strlen(tmp)) {
       PlayerInfo[playerid][Teleporting] = 1;
SendClientMessage(playerid,BLUE,"Teleporting to Army Base in 7 secs");
GameTextForPlayer(playerid,"~w~Teleporting ~b~please ~y~wait");// ~b~ ~y~ ~w~ are colors
SetTimer("Armyloc",1000*7,0); // 7 secs and 0 = loop none
      }
      return 1;
   }
Made in 1 minute
EDIT :O_o Just fixed playerid to "i"
« Last Edit: March 13, 2011, 09:22:58 pm by BIG[H] »
Outdoor city server Administrator, FS server owner!

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Easy question : Teleport commands
« Reply #4 on: March 13, 2011, 09:23:26 pm »
He means about players,there isnt a way to maintain 2 player ids,I think..
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

yazeen

  • Guest
Re: Easy question : Teleport commands
« Reply #5 on: March 14, 2011, 11:49:25 am »
He is asking for !goto player

Like hunting and european server

Goto in 10sec for avoding Death evade

Offline Scripter

  • Wiseguy
  • **
  • Posts: 62
    • View Profile
Re: Easy question : Teleport commands
« Reply #6 on: March 14, 2011, 12:31:22 pm »
He is asking for !goto player

Like hunting and european server

Goto in 10sec for avoding Death evade
yea and also heal when playes use/c gotoloc they need to teleport after 5 sec
but how
« Last Edit: March 14, 2011, 01:06:41 pm by Scripter »