Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Gang system by Abaddon
- */
- #include <a_samp>
- #include <dini>
- #include <sscanf>
- #if defined FILTERSCRIPT
- 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
- new tcount;
- stock ReturnUser(text[], playerid = INVALID_PLAYER_ID)
- {
- new pos = 0;
- while (text[pos] < 0x21) // Strip out leading spaces
- {
- if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
- pos++;
- }
- new userid = INVALID_PLAYER_ID;
- if (IsNumeric(text[pos])) // Check whole passed string
- {
- // If they have a numeric name you have a problem (although names are checked on id failure)
- userid = strval(text[pos]);
- if (userid >=0 && userid < MAX_PLAYERS)
- {
- if(!IsPlayerConnected(userid))
- {
- userid = INVALID_PLAYER_ID;
- }
- else
- {
- return userid; // A player was found
- }
- }
- }
- // They entered [part of] a name or the id search failed (check names just incase)
- new len = strlen(text[pos]);
- new count = 0;
- new name[MAX_PLAYER_NAME];
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i))
- {
- GetPlayerName(i, name, sizeof (name));
- if (strcmp(name, text[pos], true, len) == 0) // Check segment of name
- {
- if (len == strlen(name)) // Exact match
- {
- return i; // Return the exact player on an exact match
- }
- else // Partial match
- {
- count++;
- userid = i;
- }
- }
- }
- }
- if (count != 1)
- {
- if (playerid != INVALID_PLAYER_ID)
- {
- if (count)
- {
- SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow search.");
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "No matching user found.");
- }
- }
- userid = INVALID_PLAYER_ID;
- }
- return userid; // INVALID_PLAYER_ID for bad return
- }
- IsNumeric(const string[])
- {
- for (new i = 0, j = strlen(string); i < j; i++)
- {
- if (string[i] > '9' || string[i] < '0') return 0;
- }
- return 1;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- stock GetName(playerid)
- {
- new pname[MAX_PLAYER_NAME]; pname="Íåâàëèäíî ID íà èãðà÷.";
- if(IsPlayerConnected(playerid)) {
- GetPlayerName(playerid, pname, sizeof (pname));
- }
- return pname;
- }
- #define MAX_GANGS 3
- #define CIVIL 0
- #define VIP 1
- #define GROVE 2
- #define COLOR_VIP 0xFC4242FF
- #define TURF_CIVIL 0x00000088
- #define TURF_VIP 0xFC424288
- #define TURF_GROVE 0xx00D61D88
- #define COLOR_GROVE 0x00D61DFF
- #define MAX_TURFS 10
- #define DIALOG_TURFS 1898
- static pGang[MAX_PLAYERS];
- enum info
- {
- pMember,
- pLeader,
- pAttacker
- }
- new pInfo[MAX_PLAYERS][info];
- enum gInfo
- {
- gName[40],
- gTurfs,
- gBalance,
- gTurfTime,
- gColor,
- gTurfColor,
- gRank1[40],
- gRank2[40],
- gRank3[40],
- gRank4[40],
- gRank5[40],
- gRank6[40]
- }
- new GangInfo[MAX_GANGS][gInfo] = {
- {"CIVILIAN",0,0,5*60,-1,TURF_CIVIL,"None","None","None","None","None","None"},
- {"VIP",0,0,5*60,COLOR_VIP,TURF_VIP,"Newbie","Progressive","Adapted","Left Hand","Right Hand","Leader"},
- {"Grove Street Families",0,0,5*60,COLOR_VIP,"Gangsta","OG","Double OG","Left Hand","Right Hand","Boss"}
- };
- enum tInfo
- {
- tId,
- tName[40],
- tCity[40],
- tOwnedBy,
- tColor,
- Float:tMinX,
- Float:tMinY,
- Float:tMaxX,
- Float:tMaxY
- }
- new TurfInfo[MAX_TURFS][tInfo] = {
- {0,"VIP BASE","LS",CIVIL,0x00000088,1099.6410,-2085.1479,1286.3158,-1996.8062}, // i can start turf attack only in this turf
- {1,"LOS SANTOS VAGOS TERRITORY","LS",CIVIL,0x00000088,2445.889892, -1160.060913, 2733.889892, -992.060913},
- {2,"BOUNTY HUNTER TERRITORY","LS",CIVIL,0x00000088,658.115905, -1342.275024, 802.115905, -1222.275024},
- {3,"GROVE STREET FAMILIES TERRITORY","LS",CIVIL,0x00000088,2428.630371, -1734.706665, 2556.630371, -1606.706665},
- {4,"GROVE STREET FAMILIES TERRITORY 1","LS",CIVIL,0x00000088,2343.880126, -1736.390380, 2423.880126, -1560.390380},
- {5,"LS TOWER","LS",CIVIL,0x00000088,1479.914428, -1410.200073, 1599.914428, -1298.200073},
- {6,"LS BEACH","LS",CIVIL,0x00000088,153.607788, -1915.986083, 377.607788, -1747.986083},
- {7,"LS BEACH 1","LS",CIVIL,0x00000088,390.188720, -1917.991088, 710.188720, -1789.991088},
- {8,"LS AIRPORT","LS",CIVIL,0x00000088,1352.791259, -2401.828857, 1584.791259, -2185.828857},
- {9,"LS AIRPORT 1","LS",CIVIL,0x00000088,1563.622070, -2413.599121, 1851.622070, -2173.599121}
- };
- new TurfAttacked[MAX_TURFS] = 0;
- new TurfAttackedBy[MAX_TURFS] = 0;
- new TurfAttackedTime[MAX_TURFS] = 0;
- stock IsPlayerInTurf(playerid,turfid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if (x > TurfInfo[turfid][tMinX] && x < TurfInfo[turfid][tMaxX] && y > TurfInfo[turfid][tMinY] && y < TurfInfo[turfid][tMaxY])
- {
- return 1;
- }
- return 0;
- }
- stock GetAttackersInTurf(turfid)
- {
- new acount = 0;
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i) && IsPlayerInTurf(i,turfid) && pInfo[i][pAttacker] == 1)
- {
- count++;
- }
- }
- return acount;
- }
- stock GetPlayersInTurf(turfid)
- {
- new count = 0;
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i) && IsPlayerInTurf(i,turfid))
- {
- count++;
- }
- }
- return count;
- }
- stock SendAdminMessage(color,string[])
- {
- for(new i=0; i < MAX_PLAYERS;i++)
- {
- if(IsPlayerAdmin(i))
- {
- format(string,sizeof(string),"%s",string);
- SendClientMessage(i,0xFF0000FF,string);
- }
- }
- return 1;
- }
- stock SaveTurfs()
- {
- for(new t=0;t<MAX_TURFS;t++)
- {
- new tpath[200];
- format(tpath,sizeof(tpath),"/Turfs/%d.ini",TurfInfo[t][tId]);
- if(dini_Exists(tpath))
- {
- dini_IntSet(tpath,"OwnedBy",TurfInfo[t][tOwnedBy]);
- dini_IntSet(tpath,"Color",TurfInfo[t][tColor]);
- }
- else
- {
- dini_Create(tpath);
- dini_IntSet(tpath,"OwnedBy",CIVIL);
- dini_IntSet(tpath,"Color",0x00000088);
- }
- }
- return 1;
- }
- stock LoadTurfs()
- {
- for(new t=0;t<MAX_TURFS;t++)
- {
- new tpath[200];
- format(tpath,sizeof(tpath),"/Turfs/%d.ini",TurfInfo[t][tId]);
- if(dini_Exists(tpath))
- {
- TurfInfo[t][tOwnedBy] = dini_Int(tpath,"OwnedBy");
- TurfInfo[t][tColor] = dini_Int(tpath,"Color");
- TurfInfo[t][tId] = GangZoneCreate(TurfInfo[t][tMinX],TurfInfo[t][tMinY],TurfInfo[t][tMaxX],TurfInfo[t][tMaxY]);
- }
- }
- return 1;
- }
- forward CheckTurfs();
- public OnGameModeInit()
- {
- LoadTurfs();
- SetTimer("CheckTurfs",1000,true);
- AddStaticVehicle(522,1259.1997,-2016.8817,58.9971,12.5053,2,2);
- /*for(new t=0; t < sizeof(TurfInfo); t++)
- {
- TurfInfo[t][tId] = GangZoneCreate(TurfInfo[t][tMinX],TurfInfo[t][tMinY],TurfInfo[t][tMaxX],TurfInfo[t][tMaxY]);
- }*/
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- SaveTurfs();
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new plrIP[256],ippath[256],string[1000];
- GetPlayerIp(playerid,plrIP,sizeof(plrIP));
- format(ippath,sizeof(ippath),"/RolePlay/Ips/%s.ini",plrIP);
- for(new t=0; t < MAX_TURFS; t++)
- {
- GangZoneShowForPlayer(playerid,TurfInfo[t][tId],TurfInfo[t][tColor]);
- }
- if(!dini_Exists(ippath))
- {
- dini_Create(ippath);
- dini_Set(ippath,"NickName",GetName(playerid));
- }
- else
- {
- if(strcmp(dini_Get(ippath,"NickName"),GetName(playerid),true)!=0)
- {
- format(string,sizeof(string),"Report from THE SEREVR for %s [Reason: MultiAcc]",GetName(playerid));
- SendAdminMessage(-1,string);
- }
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerPos(playerid,1259.1997,-2016.8817,58.9971);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new string[2000];
- for(new t=0;t<MAX_TURFS;t++)
- {
- if(!IsPlayerInTurf(playerid,TurfInfo[t][tId]))
- {
- if(TurfAttacked[TurfInfo[t][tId]] == 1)
- {
- if(TurfAttackedBy[TurfInfo[t][tId]] == pGang[playerid])
- {
- if(pInfo[playerid][pAttacker] == 1)
- {
- if(GetPlayersInTurf(TurfInfo[t][tId]) > 0)
- {
- pInfo[playerid][pAttacker] = 0;
- format(string,sizeof(string),"{FFAAFF}[TURF WAR]: {FF0000}%s {FFAAFF}íàïóñíà î÷åðòàíèÿòà íà òåðèòîðèÿòà è âå÷å íå å ATTACKER!",GetName(playerid));
- SendClientMessageToAll(-1,string);
- }
- else
- {
- GangZoneStopFlashForAll(TurfInfo[t][tId]);
- TurfAttacked[TurfInfo[t][tId]] = 0;
- format(string,sizeof(string),"{FFAAFF}[TURF WAR]: {FF0000}%s {FFAAFF}íàïóñíà î÷åðòàíèÿòà íà òåðèòîðèÿòà è âå÷å íå å ATTACKER!",GetName(playerid));
- SendClientMessageToAll(-1,string);
- format(string,sizeof(string),"{FFAAFF}[TURF WAR]: {FF0000}%s {FFAAFF}íå óñïÿ äà ïðåâçåìå òåðèòîðèÿòà {FF0000}%s {FFAAFF}, êîÿòî ñå íàìèðà â {FF0000}%s{FFAAFF}!",GangInfo[TurfAttackedBy[TurfInfo[t][tId]]][gName],TurfInfo[TurfInfo[t][tId]][tName],TurfInfo[TurfInfo[t][tId]][tCity]);
- SendClientMessageToAll(-1,string);
- }
- }
- }
- }
- }
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(pInfo[playerid][pMember] > 0)
- {
- new string[2000];
- format(string,sizeof(string),"[%s]: %s:[ID:%d]: {FFFFFF}%s",GangInfo[pGang[playerid]][gName],GetName(playerid),playerid,text);
- SendClientMessageToAll(GangInfo[pGang[playerid]][gColor],string);
- return 0;
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[128], idx;
- cmd = strtok(cmdtext, idx);
- new tmp[128];
- new string[2000];
- new params[1000];
- if(strcmp(cmd,"/checkturf",true)==0)
- {
- for(new t=0;t<MAX_TURFS;t++)
- {
- if(IsPlayerInTurf(playerid,t))
- {
- format(string,sizeof(string),"{FFAAFF}Òàçè òåðèòîðèÿ ïðèíàäëåæè íà {FF0000}%s{FFAAFF}.",GangInfo[TurfInfo[t][tOwnedBy]][gName]);
- SendClientMessage(playerid,-1,string);
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/turfs",true)==0)
- {
- for(new t=0;t<MAX_TURFS;t++)
- {
- if(TurfInfo[t][tOwnedBy] == CIVIL)
- {
- tcount++;
- }
- }
- format(string,sizeof(string),"{0DFF00}1. {00D5FF}VIP ïðèòåæàâà: {FF0000}%d òåðèòîðèè\n\n\n{FF0000}Áðîé Civil òåðèòîðèè:{FFFFFF} %d",GangInfo[VIP][gTurfs],tcount);
- ShowPlayerDialog(playerid,DIALOG_TURFS,DIALOG_STYLE_MSGBOX,"Áðîé òåðèòîðèè:",string,"Èçëåç","");
- return 1;
- }
- sscanf(cmdtext, "s[28]S()[100]", cmd, params);
- if(strcmp(cmd,"/setturftime",true)==0)
- {
- new team[60],time;
- if(sscanf(params,"s[60]i",team,time)) return SendClientMessage(playerid,-1,"Èçïîëçâàé: /setturftime [TEAM] [TIME]");
- if(strcmp(team,"VIP",true)==0)
- {
- if(time > 0)
- {
- format(string,sizeof(string),"Òè ïðîìåíè âðåìåòî çà àòàêà íà òåðèòîðèÿ íà VIP íà %d",time);
- GangInfo[VIP][gTurfTime] = time;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/makemeleader",true)==0)
- {
- pInfo[playerid][pMember] = 1;
- pInfo[playerid][pLeader] = 1;
- pGang[playerid] = 1;
- format(string,sizeof(string),"*** %s áåøå íàçíà÷åí çà ëèäåð íà áàíäà/ìàôèÿ %s ***",GetName(playerid),GangInfo[1][gName]);
- SendClientMessageToAll(-1,string);
- return 1;
- }
- if(strcmp(cmd,"/turfattack",true)==0)
- {
- if(pInfo[playerid][pLeader] >= 1)
- {
- for(new turf=0;turf<sizeof(TurfInfo);turf++)
- {
- if(IsPlayerInTurf(playerid,turf))
- {
- if(TurfAttacked[turf] != 1)
- {
- GangZoneFlashForAll(TurfInfo[turf][tId],GangInfo[pGang[playerid]][gTurfColor]);
- format(string,sizeof(string),"{FFAAFF}[TURF WAR]: {FF0000}%s {FFAAFF}çàïî÷íà àòàêà íàä òåðèòîðèÿ {FF0000}%s {FFAAFF}, êîÿòî ñå íàìèðà â {FF0000}%s!",GangInfo[pGang[playerid]][gName],TurfInfo[turf][tName],TurfInfo[turf][tCity]);
- SendClientMessageToAll(-1,string);
- TurfAttacked[TurfInfo[turf][tId]] = 1;
- pInfo[playerid][pAttacker] = 1;
- TurfAttackedBy[turf] = pGang[playerid];
- new w = GetPlayerWantedLevel(playerid);
- SetPlayerWantedLevel(playerid,w+2);
- if(pGang[GetPlayersInTurf(turf)] == pGang[playerid])
- {
- new w2 = GetPlayerWantedLevel(GetPlayersInTurf(turf));
- pInfo[GetPlayersInTurf(turf)][pAttacker] = 1;
- SetPlayerWantedLevel(GetPlayersInTurf(turf),w2+2);
- }
- }
- else
- {
- SendClientMessage(playerid,-1,"Òàçè òåðèòîðèÿ âå÷å å àòàêóâàíà!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid,-1,"Òðÿáâà äà ñè â òåðèòîðèÿ!");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid,-1,"Íÿìàø äîñòàòú÷íî ïðàâà çà òàçè êîìàíäà!");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd,"/makeleader",true)==0)
- {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,-1,"Èçïîëçâàé: /makeleader [playerid] [team]");
- return 1;
- }
- new player;
- new team[40];
- player = ReturnUser(tmp);
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid,-1,"Èçïîëçâàé: /makeleader [playerid] [team]");
- return 1;
- }
- strmid(team,tmp,0,sizeof(team),sizeof(team));
- if(IsPlayerConnected(player))
- {
- if(player != INVALID_PLAYER_ID)
- {
- if(strcmp(team,"VIP",0)==true)
- {
- pInfo[player][pMember] = 1;
- pInfo[player][pLeader] = 1;
- pGang[player] = 1;
- format(string,sizeof(string),"*** %s áåøå íàçíà÷åí çà ëèäåð íà áàíäà/ìàôèÿ %s ***",GetName(player),GangInfo[1][gName]);
- SendClientMessageToAll(-1,string);
- }
- }
- }
- return 1;
- }
- return 0;
- }
- 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 OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- new string[2000];
- for(new t=0;t<MAX_TURFS;t++)
- {
- if(!IsPlayerInTurf(playerid,TurfInfo[t][tId]))
- {
- if(TurfAttacked[TurfInfo[t][tId]] == 1)
- {
- if(TurfAttackedBy[TurfInfo[t][tId]] == pGang[playerid])
- {
- if(pInfo[playerid][pAttacker] == 1)
- {
- if(GetPlayersInTurf(TurfInfo[t][tId]) > 0)
- {
- pInfo[playerid][pAttacker] = 0;
- format(string,sizeof(string),"{FFAAFF}[TURF WAR]: {FF0000}%s {FFAAFF}íàïóñíà î÷åðòàíèÿòà íà òåðèòîðèÿòà è âå÷å íå å ATTACKER!",GetName(playerid));
- SendClientMessageToAll(-1,string);
- }
- else
- {
- GangZoneStopFlashForAll(TurfInfo[t][tId]);
- TurfAttacked[TurfInfo[t][tId]] = 0;
- format(string,sizeof(string),"{FFAAFF}[TURF WAR]: {FF0000}%s {FFAAFF}íå óñïÿ äà ïðåâçåìå òåðèòîðèÿòà {FF0000}%s {FFAAFF}, êîÿòî ñå íàìèðà â {FF0000}%s{FFAAFF}!",GangInfo[TurfAttackedBy[TurfInfo[t][tId]]][gName],TurfInfo[TurfInfo[t][tId]][tName],TurfInfo[TurfInfo[t][tId]][tCity]);
- SendClientMessageToAll(-1,string);
- }
- }
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public CheckTurfs()
- {
- new string[2000];
- for(new t=0;t<MAX_PLAYERS;t++)
- {
- if(TurfAttacked[TurfInfo[t][tId]] == 1)
- {
- if(TurfAttackedTime[TurfInfo[t][tId]] >= GangInfo[TurfAttackedBy[TurfInfo[t][tId]]][gTurfTime])
- {
- format(string,sizeof(string),"{FFAAFF}[TURF WAR]: {FF0000}%s {FFAAFF}ïðåâçå òåðèòîðèÿòà {FF0000}%s {FFAAFF}êîÿòî ñå íàìèðà â {FF0000}%s{FFAAFF}!",GangInfo[TurfAttackedBy[TurfInfo[t][tId]]][gName],TurfInfo[t][tName],TurfInfo[t][tCity]);
- SendClientMessageToAll(-1,string);
- TurfAttacked[TurfInfo[t][tId]] = 0;
- TurfInfo[t][tColor] = GangInfo[TurfAttackedBy[TurfInfo[t][tId]]][gTurfColor];
- GangZoneStopFlashForAll(TurfInfo[t][tId]);
- GangZoneShowForAll(TurfInfo[t][tId],TurfInfo[t][tColor]);
- GangInfo[TurfAttackedBy[TurfInfo[t][tId]]][gTurfs]++;
- tcount --;
- }
- else
- {
- TurfAttackedTime[TurfInfo[t][tId]]++;
- return 1;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement