Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //includes
- #include <a_samp>
- //defines
- #define COLOR_RED 0xFF0000FF
- #define COLOR_WHITE 0x000000
- #define COLOR_GREEN 0x00FF08
- //variables
- new players = 0;
- main()
- {
- print("glitchdetector's Gamemode");
- return 1;
- }
- public OnGameModeInit()
- {
- print("glitchdetector's Gamemode");
- AddPlayerClass(280,1544.6870,-1609.1960,13.3828,270.1332,-1,-1,-1,-1,-1,-1);
- return 1;
- }
- public OnGameModeExit()
- {
- print("Gamemode stopped.");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessageToAll(COLOR_GREEN, "%s joined the server.");
- players++;
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to ~r~glitchdetector's ~w~server!");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- SendClientMessageToAll(COLOR_RED, "%s left the server.");
- players--;
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerInterior(playerid,14);
- SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
- SetPlayerFacingAngle(playerid,270.0);
- SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
- SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerDeath(playerid,killerid,reason)
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement