Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- _____ _ _ _ _ _____ _______ _ _ ______ _____ _______ _______ _______ ______ __ __
- / ____| | | | \ | | / ____| /\|__ __| | | | ____| __ \ / ____\ \ / / ____|__ __| ____| \/ |
- | | __| | | | \| | | | __ / \ | | | |__| | |__ | |__) | | (___ \ \_/ / (___ | | | |__ | \ / |
- | | |_ | | | | . ` | | | |_ | / /\ \ | | | __ | __| | _ / \___ \ \ / \___ \ | | | __| | |\/| |
- | |__| | |__| | |\ | | |__| |/ ____ \| | | | | | |____| | \ \ ____) | | | ____) | | | | |____| | | |
- \_____|\____/|_| \_| \_____/_/ \_\_| |_| |_|______|_| \_\ |_____/ |_| |_____/ |_| |______|_| |_|
- Guns should be obtained in some way... a rare way..
- Therefore I'm introducing you the gun gather system, which uses gun parts to create weapons. They can be collected from a ship every 3 hours
- (that has a 1/2 chance to have those) by families' R5s+.
- To do list:
- Currently just starting, as soon as I progress enough to update this I will.
- */
- // remove when implemented
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- //
- #define MAX_DROPPED_GPARTS 10
- enum GunPart {
- gID,
- gType,
- gDropped,
- gPos[3]
- };
- static GunParts[MAX_DROPPED_GPARTS][GunPart];
- forward ShipArrivalTimer();
- forward ShipDockingTimer();
- hook GunSystem_OnGameModeInit()
- {
- SetTimer("ShipArrivalTimer", 10800000, false);
- return 1;
- }
- public ShipArrivalTimer()
- {
- SetTimer("ShipDockingTimer", 1200000, false);
- for(new i = 0; i < MAX_DROPPED_GPARTS; i++)
- {
- new shiphasillegal = random(2);
- GunParts[i][gDropped] = shiphasillegal;
- }
- return 1;
- }
- public ShipDockingTimer()
- {
- SetTimer("ShipArrivalTimer", 10800000, false);
- return 1;
- }
- CMD:takegunpart(playerid, params[])
- {
- // if(pInfo[playerid][pFamily] > 0)
- //{
- //if(pInfo[playerid][pRank] >= 5)
- //{
- if(IsPlayerInRangeOfPoint(playerid, 5.0, 2834.8857, -2386.6113, 17.5051) || IsPlayerInRangeOfPoint(playerid, 5.0, 2842.3608, -2500.4163, 17.5051)
- || IsPlayerInRangeOfPoint(playerid, 5.0, 2823.5750, -2474.1826, 12.0983) || IsPlayerInRangeOfPoint(playerid, 5.0, 2837.9119, -2449.5093, 19.9220)
- || IsPlayerInRangeOfPoint(playerid, 5.0, 2845.8704, -2447.4880, 19.92203) || IsPlayerInRangeOfPoint(playerid, 5.0, 2830.7627, -2447.7185, 19.9220))
- {
- for(new i = 0; i < MAX_DROPPED_GPARTS; i++)
- {
- if(GunParts[i][gDropped] == 0) return SendClientMessage(playerid, -1, "The ship doesn't have any gun parts right now.");
- GunParts[i][gDropped] = 0;
- }
- }
- //}
- //}
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement