Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Unique Pirate System //
- // Created by Ady_Ro //
- #include <a_samp>
- #include <zcmd>
- #include <sscanf>
- #define SM SendClientMessage
- #define SMA SendClientMessageToAll
- new PirateB;
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Ady's Pirates System v1.0 [BETA]");
- print("--------------------------------------\n");
- PirateB = CreateObject(8493, -2956.29565, -2501.05029, 18.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(971, -2813.59375, -2508.25391, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2822.54077, -2508.22388, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2831.39014, -2508.18774, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2840.29980, -2508.19409, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2849.22900, -2508.22876, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2858.21484, -2508.28076, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2867.11548, -2508.30981, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2875.99683, -2508.33496, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2885.06592, -2508.42676, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2894.26855, -2508.49023, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2903.11230, -2508.50415, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2912.08887, -2508.57495, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2921.08887, -2508.52808, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2930.08911, -2508.33887, 2.50000, -270.00000, 0.00000, 0.00000);
- CreateObject(971, -2948.19971, -2508.28564, 3.22000, -50.00000, 0.00000, 95.00000);
- CreateObject(971, -2938.94653, -2508.34351, 2.50000, -270.00000, 0.00000, 0.00000);
- Create3DTextLabel("Welcome to Pirates Beach!\nThe boat waits you!",-2773.0190,-2507.3447,3.0000,89.7255);
- Create3DTextLabel("Walk on the gates\nBe careful!",-2847.8032,-2508.4011,3.6834,90.6841);
- Create3DTextLabel("Welcome on boat!\nTo start the adventure /start",-2957.0249,-2511.3245,6.7109,0.7356);
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/mycommand", cmdtext, true, 10) == 0)
- {
- // Do something here
- return 1;
- }
- return 0;
- }
- CMD:pirate(playerid,params[])
- {
- new str[100];
- SM(playerid,0xFF0000FF,"Welcome to Pirate Adventure");
- SetPlayerPos(playerid,-2773.0190,-2507.3447,3.0000,89.7255);
- format(str,100,"Cmon quickly , %s goes to /pirate and try to start the Pirate Boat",Name(playerid));
- SMA(0xFF0000FF,str);
- return 1;
- }
- CMD:start(playerid,params[])
- {
- new str2[124];
- if(!IsPlayerInRangeOfPoint(playerid,8.0,-2957.9026,-2515.0371,6.7109,326.5457)) return SM(playerid,0xFF0000FF,"Nu esti pe o corabie!");
- SM(playerid,0xFF0000FF,"Now you started the boat !");
- MoveObject(PirateB,-3017.2390,493.4922,-0.3834,9.5227,13.5);
- format(str2,124,"%s started the boat! /pirate fast!",Name(playerid));
- SMA(0xFF0000FF,str2);
- return 1;
- }
- stock Name(playerid)
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,sizeof(pName));
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement