Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------------------------//
- //PERSONAL COMMANDS FOR PLAYERS
- //© COPYRIGHT
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define LIGHTGREEN 0x38FF06FF
- #define LIGHTBLUE2 0xF6BB0AA
- #define LIGHTBLUE 0x0BBF6AA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_PURPLE 0x800080AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_GREEN1 0x33AA33AA
- #define COLOR_BROWN 0xA52A2AAA
- #define blue 0x375FFFFF
- #define BlueMsg 0x0BBF6AA
- #define white 0xFFFFFFAA
- #define red 0xFF0000AA
- #define lightred 0xFB0000AA
- #define green 0x33FF33AA
- #define yellow 0xFFFF00AA
- #define grey 0xC0C0C0AA
- #define Green1 0x129E12FF
- #define Green2 0x53D212FF
- #define blue1 0x2641FEAA
- #define orange 0xFF9900AA
- #define black 0x2C2727AA
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" pcmds");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- print(" pcmds");
- print(" Loading:Personal commands have loaded");
- print(" Ready:Peronal commands are ready for use!");
- print(" Weapons:Weapons are ready for use!");
- print(" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/midnight", cmdtext, true, 10) == 0)
- {
- SetPlayerTime(playerid,0,0);
- SendClientMessage(playerid, 0x375FFFFF, "{TIME}You have been changed your time to 00:00");
- return 1;
- }
- if (strcmp("/noon", cmdtext, true, 10) == 0)
- {
- SetPlayerTime(playerid,12,0);
- SendClientMessage(playerid, 0x375FFFFF, "{TIME}You have been changed your time to 12:00");
- return 1;
- }
- if (strcmp("/pcmds", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF9900AA, "{PCMDS HELP}The commands for the time are :/morning,/noon,/midnight");
- SendClientMessage(playerid, 0xFF9900AA, "{PCMDS HELP}The commands for the weapons are :/ak-47,/m4,/sniper,/baseball,/knife,/poolcue");
- SendClientMessage(playerid, 0xFF9900AA, "{PCMDS HELP}The commands for the weapons are :/9mm,/desert,/shotgun,/combat,/uzi,/mp5");
- SendClientMessage(playerid, 0xFF9900AA, "{PCMDS HELP}The commands for the weathers are :/bluesky,/stormy,/foggy,/sandstrom,/hot");
- SendClientMessage(playerid, 0xFF9900AA, "{PCMDS HELP}The commands for the health/armour are :/heal/kill/armour/halfarmour");
- SendClientMessage(playerid, 0xFF9900AA, "{PCMDS HELP}The commands for your colour name are :/red/black,/lightblue,/purple,/yellow");
- SendClientMessage(playerid, 0xFF9900AA, "{PCMDS HELP}The commands for skin are :/janitor/airportman,/beachman/bmxer,/warker,/mechanic,/biker 1/2,/pilot");
- return 1;
- }
- if (strcmp("/morning", cmdtext, true, 10) == 0)
- {
- SetPlayerTime(playerid,6,0);
- SendClientMessage(playerid, 0x375FFFFF, "{TIME}You have been changed your time to 6:00");
- return 1;
- }
- if (strcmp("/heal", cmdtext, true, 10) == 0)
- {
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, 0x375FFFFF, "{HEAL}You have been full healed and you lost 400$ for your treatment");
- GivePlayerMoney(playerid, -400);
- return 1;
- }
- if (strcmp("/kill", cmdtext, true, 10) == 0)
- {
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid, 0x375FFFFF, "{KILL}You have been kill and you lost 400$ for your treatment");
- GivePlayerMoney(playerid, -400);
- return 1;
- }
- if (strcmp("/ak-47", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your ak-47 and it coasts 400$");
- GivePlayerWeapon(playerid,30,10000);
- GivePlayerMoney(playerid, -400);
- return 1;
- }
- if (strcmp("/m4", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your m4 and it coasts 500$");
- GivePlayerWeapon(playerid,31,10000);
- GivePlayerMoney(playerid, -500);
- return 1;
- }
- if (strcmp("/sniper", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your sniper and it coasts 800$");
- GivePlayerWeapon(playerid,34,10000);
- GivePlayerMoney(playerid, -800);
- return 1;
- }
- if (strcmp("/baseball", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your baseball and it coasts 50$");
- GivePlayerWeapon(playerid,5,10000);
- GivePlayerMoney(playerid, -50);
- return 1;
- }
- if (strcmp("/knife", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your knife and it coasts 50$");
- GivePlayerWeapon(playerid,4,10000);
- GivePlayerMoney(playerid, -50);
- return 1;
- }
- if (strcmp("/poolcue", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your poolcue and it coasts 80$");
- GivePlayerWeapon(playerid,7,10000);
- GivePlayerMoney(playerid, -80);
- return 1;
- }
- if (strcmp("/9mm", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your 9mm and it coasts 200$");
- GivePlayerWeapon(playerid,22,10000);
- GivePlayerMoney(playerid, -200);
- return 1;
- }
- if (strcmp("/desert", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your deserteagle and is coasts 200$");
- GivePlayerWeapon(playerid,24,10000);
- GivePlayerMoney(playerid, -200);
- return 1;
- }
- if (strcmp("/shotgun", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your shotgun and it coasts 450$");
- GivePlayerWeapon(playerid,26,10000);
- GivePlayerMoney(playerid, -450);
- return 1;
- }
- if (strcmp("/combat", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your combat shotgun and it coasts 550$");
- GivePlayerWeapon(playerid,27,10000);
- GivePlayerMoney(playerid, -550);
- return 1;
- }
- if (strcmp("/uzi", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your uzi and it coasts 380$");
- GivePlayerWeapon(playerid,28,10000);
- GivePlayerMoney(playerid, -380);
- return 1;
- }
- if (strcmp("/mp5", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "{WEAPON}This is your mp5 and it coasts 450$");
- GivePlayerWeapon(playerid,29,10000);
- GivePlayerMoney(playerid, -450);
- return 1;
- }
- if (strcmp("/bluesky", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xA52A2AAA, "{WEATHER}Your weather have been changed to:Blue Sky!");
- SetPlayerWeather(playerid, 0);
- return 1;
- }
- if (strcmp("/stormy", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xA52A2AAA, "{WEATHER}Your weather have been changed to:Stormy!");
- SetPlayerWeather(playerid, 08);
- return 1;
- }
- if (strcmp("/foggy", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xA52A2AAA, "{WEATHER}Your weather have been changed to:Foggy!");
- SetPlayerWeather(playerid, 09);
- return 1;
- }
- if (strcmp("/sandstrom", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xA52A2AAA, "{WEATHER}Your weather have been changed to:Sandstrom!");
- SetPlayerWeather(playerid, 19);
- return 1;
- }
- if (strcmp("/hot", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xA52A2AAA, "{WEATHER}Your weather have been changed to:Hot!(Weather does have any cloud)");
- SetPlayerWeather(playerid, 17);
- return 1;
- }
- if (strcmp("/armour", cmdtext, true, 10) == 0)
- {
- SetPlayerArmour(playerid, 100);
- SendClientMessage(playerid, 0x375FFFFF, "{ARMOUR}You have set your armour at 100 and you lost 200$");
- GivePlayerMoney(playerid, -200);
- return 1;
- }
- if (strcmp("/halfarmour", cmdtext, true, 10) == 0)
- {
- SetPlayerArmour(playerid, 100);
- SendClientMessage(playerid, 0x375FFFFF, "{ARMOUR}You have set your armour at 50 and you lost 80$");
- GivePlayerMoney(playerid, -80);
- return 1;
- }
- if (strcmp("/red", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 3);
- SendClientMessage(playerid, 0x375FFFFF, "{COLOR}You have set your colour to:Red ");
- return 1;
- }
- if (strcmp("/black", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0);
- SendClientMessage(playerid, 0x375FFFFF, "{COLOR}You have set your colour to:Black ");
- return 1;
- }
- if (strcmp("/lightblue", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 1);
- SendClientMessage(playerid, 0x375FFFFF, "{COLOR}You have set your colour to:Lightblue ");
- return 1;
- }
- if (strcmp("/purple", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 5);
- SendClientMessage(playerid, 0x375FFFFF, "{COLOR}You have set your colour to:Purple ");
- return 1;
- }
- if (strcmp("/yellow", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 6);
- SendClientMessage(playerid, 0x375FFFFF, "{COLOR}You have set your colour to:Yellow ");
- return 1;
- }
- if (strcmp("/janitor", cmdtext, true, 10) == 0)
- {
- SetPlayerSkin(playerid, 8);
- SendClientMessage(playerid, 0x375FFFFF, "{SKIN}You have set your skin janitor(id:8)");
- return 1;
- }
- if (strcmp("/airportman", cmdtext, true, 10) == 0)
- {
- SetPlayerSkin(playerid, 16);
- SendClientMessage(playerid, 0x375FFFFF, "{SKIN}You have set your skin airportman(id:16)");
- return 1;
- }
- if (strcmp("/beachman", cmdtext, true, 10) == 0)
- {
- SetPlayerSkin(playerid, 18);
- SendClientMessage(playerid, 0x375FFFFF, "{SKIN}You have set your skin beachman(id:18)");
- return 1;
- }
- if (strcmp("/bmxer", cmdtext, true, 10) == 0)
- {
- SetPlayerSkin(playerid, 23);
- SendClientMessage(playerid, 0x375FFFFF, "{SKIN}You have set your skin bmxer(id:23)");
- return 1;
- }
- if (strcmp("/warker", cmdtext, true, 10) == 0)
- {
- SetPlayerSkin(playerid, 27);
- SendClientMessage(playerid, 0x375FFFFF, "{SKIN}You have set your skin warker(id:27)");
- return 1;
- }
- if (strcmp("/mechanic", cmdtext, true, 10) == 0)
- {
- SetPlayerSkin(playerid, 50);
- SendClientMessage(playerid, 0x375FFFFF, "{SKIN}You have set your skin mechanic(id:50)");
- return 1;
- }
- if (strcmp("/biker 1", cmdtext, true, 10) == 0)
- {
- SetPlayerSkin(playerid, 51);
- SendClientMessage(playerid, 0x375FFFFF, "{SKIN}You have set your skin biker(id:51)");
- return 1;
- }
- if (strcmp("/biker 2", cmdtext, true, 10) == 0)
- {
- SetPlayerSkin(playerid, 52);
- SendClientMessage(playerid, 0x375FFFFF, "{SKIN}You have set your skin biker(id:52)");
- return 1;
- }
- if (strcmp("/pilot", cmdtext, true, 10) == 0)
- {
- SetPlayerSkin(playerid, 61);
- SendClientMessage(playerid, 0x375FFFFF, "{SKIN}You have set your skin pilot(id:61)");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment