Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <a_players>
- #define COLOR_RED 0xFF0000FF
- #define COLOR_GREEN 0x00FF00FF
- #define COLOR_SYSGREY 0xC6BEBDFF
- #define COLOR_YELLOW 0xFFFF00FF
- #define COLOR_GREY 0x999999FF
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_TRANS 0xFFFFFF00
- // Please keep the credit! This Useful Stunt Scipt is made by m47. You can edit what you want, but please keep the credit. ok? ;D
- // Oh Yes and remember this is my 1st Filterscript! Maybe its not good enough. ENJOY!
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Teleport Script by m47 loaded!");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Teleport Script by m47 unloaded!");
- print("--------------------------------------\n");
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, COLOR_RED,"Filterscript by m47 loaded!. See /mcmds");
- 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;
- }
- public OnPlayerPrivmsg(playerid, recieverid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/tele", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, COLOR_RED, "--------------------------Teleports--------------------------");
- SendClientMessage(playerid, COLOR_RED, "/lv,/sf,/ls,/aa,/lvair,/sfair,/lsair,/chilliad");
- SendClientMessage(playerid, COLOR_RED, "--------------------------Teleports--------------------------");
- return 1;
- }
- if (strcmp("/mcmds", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "--------------------------m47 Stunt Commands--------------------------");
- SendClientMessage(playerid, COLOR_GREEN, "/tele,/colors,/gunshop,/vehspawner");
- SendClientMessage(playerid, COLOR_GREEN, "Credits: m47");
- SendClientMessage(playerid, COLOR_GREEN, "--------------------------m47 Stunt Commands--------------------------");
- return 1;
- }
- if (strcmp("/COLORS", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "--------------------------Colors--------------------------");
- SendClientMessage(playerid, COLOR_YELLOW, "/blue,/red,/green,/grey,/yellow,/orange");
- SendClientMessage(playerid, COLOR_YELLOW, "/white");
- SendClientMessage(playerid, COLOR_YELLOW, "--------------------------Colors--------------------------");
- return 1;
- }
- if (strcmp("/GUNSHOP", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, COLOR_BLUE, "--------------------------Gun Shop--------------------------");
- SendClientMessage(playerid, COLOR_BLUE, "/m4,/ak47,/armour,/health,/shotgun,/grenade");
- SendClientMessage(playerid, COLOR_BLUE, "--------------------------Gun Shop--------------------------");
- return 1;
- }
- if (strcmp("/VEHSPAWNER", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "--------------------------Vehicle Spawner--------------------------");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bike: /nrg,/bf400,/pcj,/sanchez,/fcr,/faggio");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Car: /infernus,/turismo,/buffalo,/sultan,/banshee,/jester,");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, " /uranus");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Boat: /speeder,/reefer,/tropic,/coastguard,/dinghy");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "--------------------------Vehcile Spawner--------------------------");
- return 1;
- }
- //-------------------------------------------------------TELEPORTS-----------------------------------
- if(!strcmp(cmdtext,"/lv",true)) {
- SetPlayerPos(playerid, 2025.075, 1627.977, 15);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Las Venturas");
- return 1;
- }
- if(!strcmp(cmdtext,"/SF",true)) {
- SetPlayerPos(playerid, -1984.9027,264.8299,35.1794);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to San Fierro");
- return 1;
- }
- if(!strcmp(cmdtext,"/LS",true)) {
- SetPlayerPos(playerid, 2470.997, -1670.019, 15);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Los Santos");
- return 1;
- }
- if(!strcmp(cmdtext,"/AA",true)) {
- SetPlayerPos(playerid, 338.6584, 2510.743, 15);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Abandonded Airport");
- return 1;
- }
- if(!strcmp(cmdtext,"/LVAIR",true)) {
- SetPlayerPos(playerid, 1330.013, 1573.824, 15);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Las Venturas Airport");
- return 1;
- }
- if(!strcmp(cmdtext,"/SFAIR",true)) {
- SetPlayerPos(playerid, -1378.797, -222.5459, 15);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to San Fierro Airport");
- return 1;
- }
- if(!strcmp(cmdtext,"/LSAIR",true)) {
- SetPlayerPos(playerid, 1641.979, -2467.462, 15);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Los Santos Airport");
- return 1;
- }
- if(!strcmp(cmdtext,"/CHILLIAD",true)) {
- SetPlayerPos(playerid,-2327.7019,-1631.3575,483.7007);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to Mount Chilliad");
- return 1;
- }
- if(!strcmp(cmdtext,"/BEACH",true)) {
- SetPlayerPos(playerid, 288.169, -1820.033, 15);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to the Beach");
- return 1;
- }
- if(!strcmp(cmdtext,"/VINEWOOD",true)) {
- SetPlayerPos(playerid, 1451.837, -856.7839, 15);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have been teleported to the Vinewood sign");
- return 1;
- }
- //-------------------------------------------Color Command----------------------------------------
- if(strcmp(cmdtext, "/grey", true) == 0) {
- SetPlayerColor(playerid, COLOR_GREY);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to grey");
- return 1;
- }
- if(strcmp(cmdtext, "/green", true) == 0) {
- SetPlayerColor(playerid, COLOR_GREEN);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to green");
- return 1;
- }
- if(strcmp(cmdtext, "/red", true) == 0) {
- SetPlayerColor(playerid, COLOR_RED);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to red");
- return 1;
- }
- if(strcmp(cmdtext, "/yellow", true) == 0) {
- SetPlayerColor(playerid, COLOR_YELLOW);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to yellow");
- return 1;
- }
- if(strcmp(cmdtext, "/white", true) == 0) {
- SetPlayerColor(playerid, COLOR_WHITE);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to white");
- return 1;
- }
- if(strcmp(cmdtext, "/blue", true) == 0) {
- SetPlayerColor(playerid, COLOR_BLUE);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to blue");
- return 1;
- }
- if(strcmp(cmdtext, "/orange", true) == 0) {
- SetPlayerColor(playerid, COLOR_ORANGE);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have set your name color to orange");
- return 1;
- }
- //----------------------------------------------Weapon Shop-----------------------------------------
- if (strcmp("/m4", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have buy a m4a1 for $5000");
- GivePlayerWeapon(playerid,31,400);
- GivePlayerMoney(playerid,-5000);
- return 1;
- }
- if (strcmp("/ak47", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have buy a ak47 for $5000");
- GivePlayerWeapon(playerid,30,400);
- GivePlayerMoney(playerid,-5000);
- return 1;
- }
- if (strcmp("/armour", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,COLOR_RED,"[INFO] You have buy an armour for $300");
- SetPlayerArmour(playerid,100);
- GivePlayerMoney(playerid,-300);
- return 1;
- }
- if (strcmp("/health", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have a 100 health for $1000");
- SetPlayerHealth(playerid,100);
- GivePlayerMoney(playerid,-1000);
- return 1;
- }
- if (strcmp("/shotgun", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have buy a shotgun for $2500");
- GivePlayerWeapon(playerid,25,100);
- GivePlayerMoney(playerid,-2500);
- return 1;
- }
- if (strcmp("/grenade", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,COLOR_GREEN,"[INFO] You have buy a grenade for $500");
- GivePlayerWeapon(playerid,16,10);
- GivePlayerMoney(playerid,-500);
- return 1;
- }
- //-----------------------------------------Vehicle Spawner-----------------------------------------
- if(strcmp("/speeder", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 452);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Speeder");
- return 1;
- }
- if(strcmp("/reefer", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 453);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Reefer");
- return 1;
- }
- if(strcmp("/tropic", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 454);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Tropic");
- return 1;
- }
- if(strcmp("/dinghy", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 473);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a dinghy");
- return 1;
- }
- if(strcmp("/coastguard", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 472);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Coast Guard");
- return 1;
- }
- if(strcmp("/nrg", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 522);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a NRG-500");
- return 1;
- }
- if(strcmp("/bf400", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 581);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a BF-400");
- return 1;
- }
- if(strcmp("/pcj", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 461);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a PCJ-600");
- return 1;
- }
- if(strcmp("/fcr", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 522);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a NRG-500");
- return 1;
- }
- if(strcmp("/sanchez", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 468);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Sanchez");
- return 1;
- }
- if(strcmp("/faggio", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 462);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Faggio");
- return 1;
- }
- if(strcmp("/freeway", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 463);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Freeway");
- return 1;
- }
- if(strcmp("/infernus", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 411);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Infernus");
- return 1;
- }
- if(strcmp("/turismo", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 451);
- SendClientMessage(playerid, COLOR_GREEN,"[INFO] You have sucessfully spawned a Turismo");
- return 1;
- }
- if(strcmp("/sultan", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 560);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have sucessfully spawned a Sultan");
- return 1;
- }
- if(strcmp("/jester", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 559);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have sucessfully spawned a Jester");
- return 1;
- }
- if(strcmp("/uranus", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 558);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have sucessfully spawned a Uranus");
- return 1;
- }
- if(strcmp("/banshee", cmdtext, true, 10) == 0)
- {
- SpawnVehicle(playerid, 429);
- SendClientMessage(playerid, COLOR_GREEN, "[INFO] You have sucessfully spawned a Banshee");
- return 1;
- }
- return 0;
- }
- public OnPlayerInfoChange(playerid)
- {
- 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 OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- SpawnVehicle(playerid, vehicleid)
- {
- new Float:X, Float:Y, Float:Z, Float:A;
- new Vehicle;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A); //Gets your Angle
- Vehicle = CreateVehicle(vehicleid, X, Y, Z, A, 1, 169, -1);
- PutPlayerInVehicle(playerid, Vehicle, 0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement