Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: killvn1 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 ?
-
Use
SetTimer(GOTO,5000,)
too lazy to make all
-
Use
SetTimer(GOTO,5000,)
too lazy to make all
meh not works error
-
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"
-
He means about players,there isnt a way to maintain 2 player ids,I think..
-
He is asking for !goto player
Like hunting and european server
Goto in 10sec for avoding Death evade
-
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