[FilterScript] Custom Pay 'N' Spray System [CPNS]
#1

Hey I've made a few custom garages :

1- In the Highway beetwin LS / LV .

2- Mall.

3- Flint County.

4- SF Enterace from Flint County.

5- LV Airport.

6- Near LSPD.


If u like it and use it please +REP and say where should I add else ... In replies...











Code :
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT



#define COLOR_TWWHITE 0xFFFFFFAA
#define COLOR_TWYELLOW 0xFFFF00AA
#define COLOR_TWPINK 0xE75480AA
#define COLOR_TWRED 0xFF0000AA
#define COLOR_TWBROWN 0x654321AA
#define COLOR_TWGRAY 0x808080AA
#define COLOR_TWOLIVE 0x808000AA
#define COLOR_TWPURPLE 0x800080AA
#define COLOR_TWTAN 0xD2B48CAA
#define COLOR_TWAQUA 0x00FFFFAA
#define COLOR_TWORANGE 0xFF8C00AA
#define COLOR_TWAZURE 0x007FFFAA
#define COLOR_TWGREEN 0x008000AA
#define COLOR_TWBLUE 0x0000FFAA
#define COLOR_TWBLACK 0x000000AA
#define COLOR_ORANGE 0xFF8000FF
//#define COLOR_GRAD1 0xB4B5B7FF
//#define COLOR_GRAD2 0xBFC0C2FF
//#define COLOR_GRAD3 0xCBCCCEFF
//#define COLOR_GRAD4 0xD8D8D8FF
//#define COLOR_GRAD5 0xE3E3E3FF
//#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GRAD1 0xFF6347AA
#define COLOR_GRAD2 0xFF6347AA
#define COLOR_GRAD3 0xFF6347AA
#define COLOR_GRAD4 0xFF6347AA
#define COLOR_GRAD5 0xFF6347AA
#define COLOR_GRAD6 0xFF6347AA
#define COLOR_GREY 0xFF6347AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_REALRED 0xFF0606FF
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_VIP 0xC93CCE00
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0x74629DC8
#define COLOR_PINK 0xFF66FFAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_BLACK 0x000000AA


#include <a_samp>
#include <streamer>
#include <a_zones>
#include <foreach>
#include <yom_buttons>
#include <djson>
#include <progress>
#include <YSI\y_timers>
#include <ZCMD>
#include <sscanf2>
#include <audio>
#include <dini>

#if defined FILTERSCRIPT




public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Custom Garage By Dom / Yarin0600!");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	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)
{
CreateDynamicObject(5532, 1276.67, 1304.17, 17.51,   0.00, 0.00, 0.00);
CreateDynamicObject(5532, 1594.20, -1755.00, 20.84,   0.00, 0.00, 180.00);
CreateDynamicObject(5532, 1636.32, -251.34, 50.96,   0.00, 0.00, -90.00);
CreateDynamicObject(9004, 1640.25, -297.03, 39.21,   0.00, 0.00, 10.00);
CreateDynamicObject(5532, 1086.40, -1370.24, 20.87,   0.00, 0.00, -90.00);
CreateDynamicObject(5532, -108.24, -1515.47, 10.16,   0.00, 0.00, 60.00);
CreateDynamicObject(5532, -1248.13, -737.62, 71.07,   -6.00, 0.00, -70.00);
	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 OnPlayerCommandPerformed(playerid, cmdtext[], success)
{

}
CMD:repairveh(playerid, params[])
{
	if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_WHITE,"You're not inside a vehicle");
 	if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid,COLOR_WHITE,"You dont have 100$");
    if(!IsPlayerInRangeOfPoint(playerid,5.0,1635.46,-263.07,43.79) && !IsPlayerInRangeOfPoint(playerid,5.0,1287.16,1303.05,10.53) && !IsPlayerInRangeOfPoint(playerid,5.0,-1245.89,-748.73,63.83) && !IsPlayerInRangeOfPoint(playerid,5.0,1085.25,-1381.94,13.52)) return SendClientMessage(playerid,COLOR_RED,"You're not at the right place");
 	RepairVehicle(GetPlayerVehicleID(playerid));
 	GivePlayerMoney(playerid,-100);
 	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;
}



#endif
Reply
#2

Don't see the point of all that includes, you use only 2-3 of them its useless, also for colors define and all those functions ...
Reply
#3

Yeah dude this is my first FS so thats the reason
Reply
#4

Don't be silly, for your first script, you did a marvelous job. Good work. Your reputation doesn't look that good, +Rep. Good luck in making future development of other scripts.
Reply
#5

Thank you very much
Reply
#6

Very Nice! REP+
Reply
#7

I remind u . U can reply More places u want and I'll make and update !
Reply
#8

Nice one
Reply
#9

Thanks so much
Reply
#10

Who can give me some ideas for improve that ? reply here...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)