[FilterScript] [RP] Teleport v2.3 [Finished] [Simple]
#1

ABOUT THE COMMAND

This is a Travel command so instead of going to the other contry write the following:

/ls - Los Santos Airport
/lv - Las Ventos Airport (NOTE!!: /sf is Los Santos and /ls is San Fierro!)
/sf - San Fierro Airport

CREDTITS

HIDDOS - OnPlayerCommandText Help
Ihsan_Cingisiz - OnPlayerCommandText Help
gamer931215 - OnPlayerCommandText Help
Vince - SetPlayerFacingAngle Help
Mike_Peterson - SetPlayerFacingAngle Help, OnPlayerCommandText Help

DOWNLOAD
CLICK ME!!
Reply
#2

Quote:
Originally Posted by jonnyboy
Посмотреть сообщение
ABOUT THE COMMAND

This is a Travel command so instead of going to the other contry write the following:

/ls - Los Santos Airport
/lv - Las Ventos Airport (NOTE!!: /sf is Los Santos and /ls is San Fierro!)
/sf - San Fierro Airport

CREDTITS

HIDDOS - OnPlayerCommandText Help
Ihsan_Cingisiz - OnPlayerCommandText Help
gamer931215 - OnPlayerCommandText Help
Vince - SetPlayerFacingAngle Help
Mike_Peterson - SetPlayerFacingAngle Help, OnPlayerCommandText Help

DOWNLOAD
CLICK ME!!
nice but why not change/fix the error?
Reply
#3

it will come the error

pawn Код:
D:\Rockstar Games\GTA San Andreas MP Server\filterscripts\tele.pwn(36) : warning 202: number of arguments does not match definition
D:\Rockstar Games\GTA San Andreas MP Server\filterscripts\tele.pwn(36) : warning 202: number of arguments does not match definition
D:\Rockstar Games\GTA San Andreas MP Server\filterscripts\tele.pwn(48) : warning 202: number of arguments does not match definition
D:\Rockstar Games\GTA San Andreas MP Server\filterscripts\tele.pwn(48) : warning 202: number of arguments does not match definition
D:\Rockstar Games\GTA San Andreas MP Server\filterscripts\tele.pwn(52) : warning 209: function "OnPlayerCommandText" should return a value
D:\Rockstar Games\GTA San Andreas MP Server\filterscripts\tele.pwn(53) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

Код:
// teleport v 2.3
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" TELEPORT Version 2.3 - Made by JonnyBoy");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" TELEPORT V 2.3 - By JonnyBoy");
    print("----------------------------------\n");
}

#endif

public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/ls",true))
{
SetPlayerPos(playerid, 1546.908, -2313.5, 15);
SetPlayerFacingAngle(playerid, 0);
return 1;
}
if(!strcmp(cmdtext,"/lv",true))
{
SetPlayerPos(playerid, 1677.544, 1426.837, 15);
SetPlayerFacingAngle(playerid, 0);
return 1;
}
if(!strcmp(cmdtext,"/sf",true))
{
SetPlayerPos(playerid, -1448.325, -325.1149, 15);
SetPlayerFacingAngle(playerid, 0);
return 1;
}
return 0;
}
It should fully work, if you copy and paste this over the old code.
Reply
#5

Here is a fixed & indented version for you, pal.
Teleport v2.3 by jonnyboy Fixed
Reply
#6

this should work..


Код:
if(!strcmp(cmdtext,"/ls",true))
{
SetPlayerPos(playerid, 1546.908, -2313.5, 15);
return 1;
}
if(!strcmp(cmdtext,"/lv",true))
{
SetPlayerPos(playerid, 1677.544, 1426.837, 15);
return 1;
}
if(!strcmp(cmdtext,"/sf",true))
{
SetPlayerPos(playerid, -1448.325, -325.1149, 15);
return 1;
}
Edit: hehe Geso Beat me to it...
Reply
#7

Fixed

http://pastebin.com/b6MBdqgg
Reply
#8

Well yeah.. That's pretty simple though. Nice job.
Reply
#9

Thanks everyone!
Reply
#10

Quote:
Originally Posted by Kevin_Joshen
Посмотреть сообщение
this should work..


Код:
if(!strcmp(cmdtext,"/ls",true))
{
SetPlayerPos(playerid, 1546.908, -2313.5, 15);
return 1;
}
if(!strcmp(cmdtext,"/lv",true))
{
SetPlayerPos(playerid, 1677.544, 1426.837, 15);
return 1;
}
if(!strcmp(cmdtext,"/sf",true))
{
SetPlayerPos(playerid, -1448.325, -325.1149, 15);
return 1;
}
Edit: hehe Geso Beat me to it...
You're welcome :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)