04.11.2018, 19:49
dont know it this can help
pawn Код:
public ClaimTimer(turf, gang)
{
new string[256];
CPInfo[turf][cGangID] = gang;
CPInfo[turf][cOwned] = 1;
if(gang == 5) { strmid(CPInfo[turf][cGang], "Mafia", 0, strlen("Mafia"), 255); }
else if (gang == 6) { strmid(CPInfo[turf][cGang], "Yakuza", 0, strlen("Yakuza"), 255); }
else if (gang == 12) { strmid(CPInfo[turf][cGang], "Hell's Rebels", 0, strlen("Hell's Rebels"), 255); }
else if (gang == 13) { strmid(CPInfo[turf][cGang], "Street People", 0, strlen("Street People"), 255); }
else if (gang == 14) { strmid(CPInfo[turf][cGang], "Imports", 0, strlen("Imports"), 255); }
else if (gang == 15) { strmid(CPInfo[turf][cGang], "Ballas", 0, strlen("Ballas"), 255); }
else if (gang == 16) { strmid(CPInfo[turf][cGang], "Aztecas", 0, strlen("Aztecas"), 255); }
else if (gang == 17) { strmid(CPInfo[turf][cGang], "Corporation", 0, strlen("Corporation"), 255); }
else if (gang == 18) { strmid(CPInfo[turf][cGang], "Vagos", 0, strlen("Vagos"), 255); }
else if (gang == 19) { strmid(CPInfo[turf][cGang], "Grove Street", 0, strlen("Grove Street"), 255); }
else if (gang > 19) { strmid(CPInfo[turf][cGang], FamilyInfo[gang-20][FamilyName], 0, strlen(FamilyInfo[gang-20][FamilyName]), 255); }
format(string, sizeof(string), "The %s have successfully claimed %s!", CPInfo[turf][cGang], CPInfo[turf][cMessage]);
for(new i = 1; i < 11; i++) // Reset forbid/allow status for point
{
cGangAllowed[turf][i] = 0;
}
OOCNews(COLOR_RED,string);
OnPropUpdate();
CPInfo[turf][cAvailable] = 0;
}