Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Simple Commands By Mr.Kakashi
- // Script By Mr.Kakashi
- // Copyright 2011
- // Great for Beginners
- //
- //Dont Remove Credits!
- #include <a_samp>
- //Define Colors
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_RED 0xFF0000FF
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_DARKRED 0x660000AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_BRIGHTRED 0xFF0000AA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_VIOLET 0x9955DEEE
- #define COLOR_LIGHTRED 0xFF99AADD
- #define COLOR_SEAGREEN 0x00EEADDF
- #define COLOR_GRAYWHITE 0xEEEEFFC4
- #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
- #define COLOR_GREENISHGOLD 0xCCFFDD56
- #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
- #define COLOR_NEUTRALBLUE 0xABCDEF01
- #define COLOR_LIGHTCYAN 0xAAFFCC33
- #define COLOR_LEMON 0xDDDD2357
- #define COLOR_MEDIUMBLUE 0x63AFF00A
- #define COLOR_NEUTRAL 0xABCDEF97
- #define COLOR_BLACK 0x00000000
- #define COLOR_NEUTRALGREEN 0x81CFAB00
- #define COLOR_DARKGREEN 0x12900BBF
- #define COLOR_LIGHTGREEN 0x24FF0AB9
- #define COLOR_DARKBLUE 0x300FFAAB
- #define COLOR_BLUEGREEN 0x46BBAA00
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_DARKRED 0x660000AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_PURPLE 0x800080AA
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_RED1 0xFF0000AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BROWN 0x993300AA
- #define COLOR_CYAN 0x99FFFFAA
- #define COLOR_TAN 0xFFFFCCAA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_KHAKI 0x999900AA
- #define COLOR_LIME 0x99FF00AA
- #define COLOR_SYSTEM 0xEFEFF7AA
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD1 0xB4B5B7FF
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Simple Commands By Mr.Kakashi");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/lol", cmdtext, true, 10) == 0)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You have to be in a vehicle");
- {
- RemovePlayerFromVehicle(playerid);
- SetVehicleHealth(vehicleid, 4.0);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_RED, "OWNED!, Your Vehicle Has Been Destroy, You Have Been LOL Pranked");
- }
- return 1;
- }
- if(strcmp("/parachute", cmdtext, true, 10) == 0)
- {
- GivePlayerWeapon(playerid, 46,100);
- SendClientMessage(playerid,COLOR_GREEN,"Enjoy with Your Parachute!");
- return 1;
- }
- if(strcmp("/help", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE,"Your Information Here!");
- return 1;
- }
- if(strcmp(cmdtext, "/afk", true) == 0)
- {
- new pName[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- SendClientMessage(playerid, COLOR_WHITE,"You Are Now AFK");
- SendClientMessage(playerid, COLOR_WHITE,"Type /back when you are back to play");
- format(string, sizeof(string), "{FFFFFF}[SERVER]:{FAF623}%s is now AFK And Be Right Back",pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- TogglePlayerControllable(playerid, 0);
- SetPlayerHealth(playerid, 999999.999);
- return 1;
- }
- if(strcmp(cmdtext, "/back", true) == 0)
- {
- new pName[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- SendClientMessage(playerid, COLOR_WHITE,"Welcome Back");
- format(string, sizeof(string), "{FFFFFF}[SERVER]:{FF002B}%s is back and able to play again",pName);
- SendClientMessageToAll(COLOR_RED, string);
- TogglePlayerControllable(playerid, 1);
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- if(!strcmp(cmdtext, "/me", true, 3))
- {
- new str[128];
- GetPlayerName(playerid, str, sizeof(str));
- format(str, sizeof(str), "%s %s", str, cmdtext[4]);
- SendClientMessageToAll(COLOR_YELLOW, str);
- return 1;
- }
- if(strcmp("/kill", cmdtext, true, 10) == 0)
- {
- SetPlayerHealth(playerid, 0);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment