Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <a_mysql>
- #include <Pawn.CMD>
- #include <sscanf2>
- #define SCM SendClientMessage
- //-------------COLORS-----------------
- #define COLOR_DISPATCH 0xff4419ff
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_SYNTAX 0xAFAFAFFF
- #define COLOR_YELLOW 0xFFFF00FF
- #define COLOR_LIGHTBLUE1 0x33CCFFAA
- #define COLOR_YELLOW2 0xF5DEB3FF
- #define COLOR_LIGHTORANGE 0xF7A763FF
- #define COLOR_AQUA 0xCCFFFFFF
- #define COLOR_NEWS 0xFFA500AA
- #define COLOR_GREEN 0x32CD32FF
- #define COLOR_GREY 0xAFAFAFFF
- #define COLOR_GREY1 0xE6E6E6FF
- #define COLOR_GREY2 0xC8C8C8FF
- #define COLOR_GREY3 0xAAAAAAFF
- #define COLOR_GREY4 0x8C8C8CFF
- #define COLOR_GREY5 0x6E6E6EFF
- #define COLOR_LIGHTRED 0xFF6347FF
- #define COLOR_ORANGE 0xFF9900FF
- #define COLOR_RED 0xAA3333FF
- #define COLOR_HUNT 0xFF42CFFF
- #define COLOR_PURPLE 0xC2A2DAFF
- #define COLOR_NEWBIE 0x7DAEFFFF
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_BLUE 0x233EFAFF
- #define COLOR_ROYALBLUE 0x9999FFFF
- #define COLOR_DOCTOR 0xFF8282FF
- #define COLOR_DARKGREEN 0x00AA00FF
- #define COLOR_VIP 0x6a86b5FF
- #define COLOR_WALKIETALKIE 0xB2EBE0FF
- #define COLOR_NAVYBLUE 0x089DCEFF
- #define COLOR_GLOBAL 0xB8FFBCFF
- #define COLOR_STATS 0xFFFF91AA
- #define COLOR_LIGHTGREEN 0x74AF7AFF
- #define COLOR_ADMINCHAT 0xED6464FF
- #define COLOR_FACTIONCHAT 0xBDF38BFF
- #define SERVER_COLOR 0xFF66FFAA
- #define COLOR_GENERAL3 0x00D900C8
- #define COLOR_TEAL 0x00AAAAAA
- #define COLOR_OFFWHITE 0xF5DEB3AA
- #define COLOR_DARKAQUA 0x83BFBFAA
- #define COLOR_REALRED 0xFF0000FF
- #define COLOR_CYAN 0x00C8FFFF
- //--------------------------------------
- main()
- {
- print("\n----------------------------------");
- print(" Samp Scripting Tutorials Gamemode by your name here");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- SetGameModeText("Scripting Tutorials");
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- TogglePlayerSpectating(playerid, true);
- SetPlayerColor(playerid, 0xFFFFFF00);
- SetPlayerCamera(playerid);
- 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;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
- 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;
- }
- CMD:sethp(playerid, params[])
- {
- new targetid, Float:amount;
- if(sscanf(params, "ud", targetid, amount))
- {
- return SCM(playerid, COLOR_SYNTAX, "Usage: /sethp [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SCM(playerid, COLOR_SYNTAX, "Selected player is not connected to the server");
- }
- if(amount > 255)
- {
- return SCM(playerid, COLOR_SYNTAX, "Amount can't be more than 255");
- }
- SetPlayerHealth(targetid, amount);
- return 1;
- }
- forward SetPlayerCamera(playerid);
- public SetPlayerCamera(playerid)
- {
- SetPlayerCameraPos(playerid, 0, 0, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment