Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GREY 0xAFAFAFAA
- #define PlayerInfo
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #if defined FILTERSCRIPT
- forward PirateShipScoreUpdate()
- forward PayPlayerInArea)
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- ShowPlayerMarkers(true);
- ShowNameTags(true);
- AddPlayerClass(1, 2017.6318, 1545.4016, 10.8292, 269.8567, 0, 0, 24, 300, -1, -1);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- GameTextForPlayer(playerid, "~r~Welcome /help for instructions~b~", 5000, 5);
- 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 OnPlayerPrivmsg(playerid, recieverid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 1;
- }
- public OnPlayerInfoChange(playerid)
- {
- 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 OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public PirateShipScoreUpdate()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- PayPlayerInArea(i, 1995.5, 1518.0, 2006.0, 1569.0, 200);
- PayPlayerInArea(i, 1516.1332, -1380.5281, 1568.4066, -1336.3019, 200);
- PayPlayerInArea(i, -1988.4744, 639.1348, -1917.0579, 715.5820, 200);
- // {
- // SendClientMessage(i, COLOR_YELLOW, "Ganaste dinero por estar en el barco de la base de SF");
- // }
- }
- }
- public PayPlayerInArea(playerID, Float:x1, Float:y1, Float:x2, Float:y2, cash)
- {
- if(IsPlayerConnected(playerID))
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerID, X, Y, Z);
- if(X >= x1 && X <= x2 && Y >= y1 && Y <= y2)
- {
- GivePlayerMoney(playerID, cash);
- return 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment