Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: killvn1 on December 28, 2010, 11:28:23 AM

Title: Easy question : Teleport commands
Post by: killvn1 on December 28, 2010, 11:28:23 AM
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 ?
Title: Re: Easy question : Teleport commands
Post by: yazeen on March 13, 2011, 04:02:00 PM
Use

SetTimer(GOTO,5000,)

too lazy to make all
Title: Re: Easy question : Teleport commands
Post by: Scripter on March 13, 2011, 04:39:48 PM
Quote from: yazeen on March 13, 2011, 04:02:00 PM
Use

SetTimer(GOTO,5000,)

too lazy to make all
meh not works error
Title: Re: Easy question : Teleport commands
Post by: BIG[H] on March 13, 2011, 07: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"
Title: Re: Easy question : Teleport commands
Post by: heekz.shadow on March 13, 2011, 07:23:26 PM
He means about players,there isnt a way to maintain 2 player ids,I think..
Title: Re: Easy question : Teleport commands
Post by: yazeen on March 14, 2011, 09:49:25 AM
He is asking for !goto player

Like hunting and european server

Goto in 10sec for avoding Death evade
Title: Re: Easy question : Teleport commands
Post by: Scripter on March 14, 2011, 10:31:22 AM
Quote from: yazeen on March 14, 2011, 09:49:25 AM
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