• Welcome to Vice City Multiplayer.
 

Easy question : Teleport commands

Started by killvn1, December 28, 2010, 10:28:23 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

killvn1

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

Use

SetTimer(GOTO,5000,)

too lazy to make all

Scripter


BIG[H]

#3
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"
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

heekz.shadow

He means about players,there isnt a way to maintain 2 player ids,I think..


Pro Scripter[/b][/i][/u]

yazeen

He is asking for !goto player

Like hunting and european server

Goto in 10sec for avoding Death evade

Scripter

#6
Quote from: yazeen on March 14, 2011, 08: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