Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----------------------------------------------------------
- //
- // GRAND LARCENY 1.0
- // A freeroam gamemode for SA-MP 0.3
- //
- //----------------------------------------------------------
- #include <a_samp>
- #include <core>
- #include <float>
- #include "../include/gl_common.inc"
- #include "../include/gl_spawns.inc"
- #pragma tabsize 0
- //----------------------------------------------------------
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_NORMAL_PLAYER 0xFF4444FF
- #define CITY_LOS_SANTOS 0
- #define CITY_SAN_FIERRO 1
- #define CITY_LAS_VENTURAS 2
- new total_vehicles_from_files=0;
- // Class selection globals
- new gPlayerCitySelection[MAX_PLAYERS];
- new gPlayerHasCitySelected[MAX_PLAYERS];
- new gPlayerLastCitySelectionTick[MAX_PLAYERS];
- new Text:txtClassSelHelper;
- new Text:txtLosSantos;
- new Text:txtSanFierro;
- new Text:txtLasVenturas;
- forward IsPlayerInGangzone(playerid);
- forward Checkpositions();
- forward IsAGangmember(playerid);
- forward SaveGangzones(Zone,Gang,Money);
- forward LoadGangzones();
- new Positioncheck[MAX_PLAYERS]=255;
- new Positioncheck1[MAX_PLAYERS]=255;
- new Text:GangPointsAnzeiger[MAX_PLAYERS];
- new Gangzone1;
- new Gangzone2;
- new Gangzone3;
- new Gangzone4;
- new Gangzone5;
- new Gangzone6;
- new Gangzone7;
- new Gangzone8;
- new Gangzone9;
- new GangPoints[10]=10; // 0 Wird nicht genutzt!
- new bool:GangInFight[10]=true; // 0 Wird nicht genutzt!
- new Gangzoneowner1;
- new Gangzoneowner2;
- new Gangzoneowner3;
- new Gangzoneowner4;
- new Gangzoneowner5;
- new Gangzoneowner6;
- new Gangzoneowner7;
- new Gangzoneowner8;
- new Gangzoneowner9;
- new Float:Gangkoordinaten[10][5]={
- {2432.969,-2653.006,2858.886,-2329.292},
- {2714.378,-1677.914,2866.492,-1247.61},
- {196.9009,-1950.308,752.115,-1745.026},
- {-1722.575,-56.85734,-1456.05,187.7305},
- {-2610.993,-396.1243,-2251.763,-187.0412},
- {-1965.925,1221.311,-1517.853,1536.90},
- {-175.1681,2265.508,525.5044,2720.945},
- {2134.411,1376.552,2493.657,1999.311},
- {2579.564,668.6965,2927.095,1295.32}
- };
- new GangColor[10][64]={
- {"0xFFFFFFFF"},
- {"0xFF000096"},
- {"0x00000096"},
- {"0x00FF0096"},
- {"0x00FFFF96"},
- {"0x80008096"},
- {"0x80400096"},
- {"0xFFFFFF96"},
- {"0xFFFF0096"},
- {"0xFFFFFF96"}
- };
- new GangNames[10][64]={
- {"Nichts"},
- {"Red Sodlier"},
- {"La Cosa Nostra"},
- {"Grove Street"},
- {"Varrios Aztecas"},
- {"Ballas"},
- {"Yakuza"},
- {"Russische Mafia"},
- {"Vangos"},
- {"Hells Angels"}
- };
- new GangInfo1=19;
- new GangInfo2=5;
- new GangInfo3=13;
- new GangInfo4=17;
- new GangInfo5=14;
- new GangInfo6=6;
- new GangInfo7=23;
- new GangInfo8=16;
- new GangInfo9=12;
- new PlayerInfo
- //----------------------------------------------------------
- main()
- {
- print("\n---------------------------------------");
- print("Running Grand Larceny - by the SA-MP team\n");
- print("---------------------------------------\n");
- }
- //----------------------------------------------------------
- public OnPlayerConnect(playerid)
- {
- GameTextForPlayer(playerid,"~w~Grand Larceny",3000,4);
- SendClientMessage(playerid,COLOR_WHITE,"Welcome to {88AA88}G{FFFFFF}rand {88AA88}L{FFFFFF}arceny");
- // class selection init vars
- gPlayerCitySelection[playerid] = -1;
- gPlayerHasCitySelected[playerid] = 0;
- gPlayerLastCitySelectionTick[playerid] = GetTickCount();
- //SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
- return 1;
- }
- //----------------------------------------------------------
- public OnPlayerSpawn(playerid)
- {
- if(IsAGangmember(playerid))
- {
- GangZoneShowForPlayer(playerid, Gangzone1, GangColor[Gangzoneowner1][1]);
- GangZoneShowForPlayer(playerid, Gangzone2, GangColor[Gangzoneowner2][1]);
- GangZoneShowForPlayer(playerid, Gangzone3, GangColor[Gangzoneowner3][1]);
- GangZoneShowForPlayer(playerid, Gangzone4, GangColor[Gangzoneowner4][1]);
- GangZoneShowForPlayer(playerid, Gangzone5, GangColor[Gangzoneowner5][1]);
- GangZoneShowForPlayer(playerid, Gangzone6, GangColor[Gangzoneowner6][1]);
- GangZoneShowForPlayer(playerid, Gangzone7, GangColor[Gangzoneowner7][1]);
- GangZoneShowForPlayer(playerid, Gangzone8, GangColor[Gangzoneowner8][1]);
- GangZoneShowForPlayer(playerid, Gangzone9, GangColor[Gangzoneowner9][1]);
- new GangVar;
- if(PlayerInfo[playerid][pMember] != 0)
- {
- if(PlayerInfo[playerid][pMember] == GangInfo1){GangVar=1;}
- if(PlayerInfo[playerid][pMember] == GangInfo2){GangVar=2;}
- if(PlayerInfo[playerid][pMember] == GangInfo3){GangVar=3;}
- if(PlayerInfo[playerid][pMember] == GangInfo4){GangVar=4;}
- if(PlayerInfo[playerid][pMember] == GangInfo5){GangVar=5;}
- if(PlayerInfo[playerid][pMember] == GangInfo6){GangVar=6;}
- if(PlayerInfo[playerid][pMember] == GangInfo7){GangVar=7;}
- if(PlayerInfo[playerid][pMember] == GangInfo8){GangVar=8;}
- if(PlayerInfo[playerid][pMember] == GangInfo9){GangVar=9;}
- }
- else
- {
- if(PlayerInfo[playerid][pLeader] == GangInfo1){GangVar=1;}
- if(PlayerInfo[playerid][pLeader] == GangInfo2){GangVar=2;}
- if(PlayerInfo[playerid][pLeader] == GangInfo3){GangVar=3;}
- if(PlayerInfo[playerid][pLeader] == GangInfo4){GangVar=4;}
- if(PlayerInfo[playerid][pLeader] == GangInfo5){GangVar=5;}
- if(PlayerInfo[playerid][pLeader] == GangInfo6){GangVar=6;}
- if(PlayerInfo[playerid][pLeader] == GangInfo7){GangVar=7;}
- if(PlayerInfo[playerid][pLeader] == GangInfo8){GangVar=8;}
- if(PlayerInfo[playerid][pLeader] == GangInfo9){GangVar=9;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement