[FilterScript] Teleport system by NoFeAr
#1

Hello Sa-mp Community I'm Posting my First Filter-Script on Sa-mp Fourms.

Teleport System

Credits: iZN also for Helping me fixing the Bug.

It's Fixed one 0.1V

Commands:

/lv
/sf
/ls
/chillad
/sftune
/lstune
/lvtune
/sfgarage
/lsgarage
/autobham
/sfdrift
/lsdrift
/lvdrift
/grovestreet
/a51
/aa
/lvstation
/lsstation
/sfstation
/lvrally
/lsrally
/sfrally
/teles

Download Link ClickMe!


Код:
//Made By NoFeAr Teleport System

#include <a_samp>
#include <zcmd>

#define COLOR_BLACK 0x000000
#define COLOR_BLUE 0x006AFF
#define COLOR_RED 0xFF0000

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Made By NoFeAr");
        print("--------------------------------------\n");
        return 1;
}

public OnFilterScriptExit()
{
        return 1;
}

#else

main()
{
        print("\n----------------------------------");
        print("Made By NoFeAr");
        print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
        // Don't use these lines if it's a filterscript
        SetGameModeText("Blank Script");
        AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
        return 1;
}

public OnGameModeExit()
{
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        return 1;
}

public OnPlayerConnect(playerid)
{
        return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
        return 1;
}

public OnPlayerSpawn(playerid)
{
        return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
        return 1;
}

public OnVehicleSpawn(vehicleid)
{
        return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
        return 1;
}

public OnPlayerText(playerid, text[])
{
        return 1;
}
CMD:sf(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, -1167.151052297178, -161.89047463139445, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, -1167.151052297178, -161.89047463139445, 0.0);
        }
        return 1;
}
CMD:lv(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, 1569.4711560803812, 1449.168048951723, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 1569.4711560803812, 1449.168048951723, 0.0);
        }
        return 1;
}
CMD:ls(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, 1988.4133209726701,  -2346.1611881810913, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 1988.4133209726701,  -2346.1611881810913, 0.0);
        }
        return 1;
}
CMD:chillad(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(539, 2316.9923163213625, 1618.8734397729647, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 2316.9923163213625, 1618.8734397729647, 0.0);
        }
        return 1;
}
CMD:sftune(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, 232.9684586674523, -1963.0411793956569, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 232.9684586674523, -1963.0411793956569, 0.0);
        }
        return 1;
}
CMD:sfgarage(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(560, -2704.938760183435, 159.99891264916027, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, -2704.938760183435, 159.99891264916027, 0.0);
        }
        return 1;
}
CMD:sfdrift(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(562, -2407.9797554745805, -589.8033155958917, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, -2407.9797554745805, -589.8033155958917, 0.0);
        }
        return 1;
}
CMD:lsgarage(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(534, 2683.3173892307645,  -1999.999638635444, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 2683.3173892307645,  -1999.999638635444, 0.0);
        }
        return 1;
}
CMD:lstune(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, 1012.5480395051891,  -1037.7852861738968, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 1012.5480395051891,  -1037.7852861738968, 0.0);
        }
        return 1;
}
CMD:lvtune(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, 2385.358522553194,  1026.5088649710378, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 2385.358522553194,  1026.5088649710378, 0.0);
        }
        return 1;
}
CMD:a51(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, 130.6697830970752,  1955.671670972157, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 130.6697830970752,  1955.671670972157, 0.0);
        }
        return 1;
}
CMD:aa(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, 385.63458511982935,  2535.9850464244882, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 385.63458511982935,  2535.9850464244882, 0.0);
        }
        return 1;
}
CMD:lvdrift(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(562, -309.2694831382646,  1570.0582886770014, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, -309.2694831382646,  1570.0582886770014, 0.0);
        }
        return 1;
}
CMD:autobham(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, -1986.0380046761406,  290.94284555322133, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, -1986.0380046761406,  290.94284555322133, 0.0);
        }
        return 1;
}
CMD:lsdrift(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(562, 1260.513807746926,  -2016.006123706891, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 1260.513807746926,  -2016.006123706891, 0.0);
        }
        return 1;
}
CMD:grovestreet(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(411, 2489.3441672997283,  -1666.8863560945272, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 2489.3441672997283,  -1666.8863560945272, 0.0);
        }
        return 1;
}
CMD:sfrally(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(495, -2366.9854147571964,  -1807.9292705949854, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, -2366.9854147571964,  -1807.9292705949854, 0.0);
        }
        return 1;
}
CMD:lsrally(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(495, -251.27748895269724,  210.977845811281, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, -251.27748895269724,  210.977845811281, 0.0);
        }
        return 1;
}
CMD:lvrally(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(495, 830.5731611987526,  1123.4366054080133, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 830.5731611987526,  1123.4366054080133, 0.0);
        }
        return 1;
}
CMD:lvstation(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(528, 2223.3808836210906,  2453.090837278054, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 2223.3808836210906,  2453.090837278054, 0.0);
        }
        return 1;
}
CMD:lsstation(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(528, 1528.476815362997,  -1669.3870523754365, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, 1528.476815362997,  -1669.3870523754365, 0.0);
        }
        return 1;
}
CMD:sfstation(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                SetVehiclePos(528, -1617.5888692040432,  731.7070658214603, 0.0);
        }
        else
        {
                SetPlayerPos(playerid, -1617.5888692040432,  731.7070658214603, 0.0);
        }
        return 1;
}
CMD:teles(playerid, params[])
{

	SendClientMessage(playerid, COLOR_BLUE, "Teleport Commands Made by NoFeAr:");
	SendClientMessage(playerid, COLOR_BLACK, "=====================================================");
	SendClientMessage(playerid, COLOR_RED, "/LS | /SF | /LV | /Chillad | /Autobham | /Grovestreet   ");
	SendClientMessage(playerid, COLOR_RED, "/Teles | /Sftune | /Lstune | /Lvtune | /Lsgarage | /A51  ");
	SendClientMessage(playerid, COLOR_RED, "/Sfgarage | /Lvdrift | /Lsdrift | /Sfdrift | /Aa | /Lvstation ");
	SendClientMessage(playerid, COLOR_RED, "/Sfrally | /Lvrally | /Lsrally | /Sfstation | /Lsstation ");
	SendClientMessage(playerid, COLOR_BLACK, "=====================================================");
 	return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
        return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
        return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
        return 1;
}

public OnRconCommand(cmd[])
{
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        return 1;
}

public OnObjectMoved(objectid)
{
        return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
        return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
        return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
        return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
        return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
        return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        return 1;
}

public OnPlayerExitedMenu(playerid)
{
        return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
        return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
        return 1;
}

public OnPlayerUpdate(playerid)
{
        return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
        return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
        return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
        return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
        return 1;
}
I hope you like it!
Reply
#2

Nice work,i tried this and it works

+REP
Reply
#3

Quote:
Originally Posted by TheK0kY
Посмотреть сообщение
Nice work,i tried this and it works

+REP
Thanks anymore Comments
Reply
#4

Easy but usefull for certain modes! gj
Reply
#5

Quote:
Originally Posted by Voxel
Посмотреть сообщение
Easy but usefull for certain modes! gj
Thanks bro! Anymore Comments
Reply
#6

Not bad for your first FS.
Good luck!
Reply
#7

Hmm nice filterscript as first FS (Y)
Keep it up (Y)
Reply
#8

All you map and filterscript you just asking and asking and asking for the comment... Anyway. Well done!
Reply
#9

Quote:
Originally Posted by hossa
Посмотреть сообщение
Not bad for your first FS.
Good luck!
Quote:
Originally Posted by qazwsx
Посмотреть сообщение
Hmm nice filterscript as first FS (Y)
Keep it up (Y)
Quote:
Originally Posted by xganyx
Посмотреть сообщение
All you map and filterscript you just asking and asking and asking for the comment... Anyway. Well done!
Thanks! Any more Comments
Reply
#10

Nice FS. Gonna use it for my server now
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)