level = PlayerInfo[i][pAdmin];
29392
[code]
CMD:permaban(playerid, params[])
{
return SendClientMessage(playerid, COLOR_GREY, "This command has been disabled.");
if(PlayerInfo[playerid][pAdmin] >= 4)
{
new string[128], giveplayerid, reason[64];
if(sscanf(params, "us[64]", giveplayerid, reason))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /permaban [playerid/partofname] [reason]");
return 1;
}
//if(AntiAdv(playerid, params)) return 1;
if(IsPlayerConnected(giveplayerid))
{
if(PlayerInfo[giveplayerid][pAdmin])
{
/*if(AdminDuty[playerid] == 1)
{
new username[MAX_PLAYER_NAME];
GetPVarString(playerid, "TempNameName", username, sizeof(username));
SetPVarInt(playerid, "TempName", 0);
SetPlayerName(playerid, username);
}
format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /permaban a higher admin.", PlayerInfo[playerid][pAdminName]);
ABroadCast(COLOR_YELLOW,string,2);
PlayerInfo[playerid][pBanned] = 3;
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);*/
SendClientMessageEx(playerid, COLOR_GREY, "You cannot permaban administrators.");
}
else
{
new playerip[32];
GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
if(AdminDuty[giveplayerid] == 1)
{
new username[MAX_PLAYER_NAME];
GetPVarString(giveplayerid, "TempNameName", username, sizeof(username));
SetPVarInt(giveplayerid, "TempName", 0);
SetPlayerName(giveplayerid, username);
format(string, sizeof(string), "AdmCmd: %s(IP:%s) was permanently banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], playerip, GetPlayerNameEx(playerid), reason);
Log("logs/ban.log", string);
format(string, sizeof(string), "AdmCmd: %s was permanently banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], GetPlayerNameEx(playerid), reason);
}
else
{
format(string, sizeof(string), "AdmCmd: %s(IP:%s) was permanently banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), playerip, GetPlayerNameEx(playerid), reason);
Log("logs/ban.log", string);
format(string, sizeof(string), "AdmCmd: %s was permanently banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
}
SendClientMessageToAllEx(COLOR_LIGHTRED, string);
PlayerInfo[giveplayerid][pPermaBanned] = 1;
new ip[32];
GetPlayerIp(giveplayerid,ip,sizeof(ip));
AddBan(ip);
Kick(giveplayerid);
}
return 1;
}
}
else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
return 1;
}
43350 and 43328
[code]
CMD:f(playerid, params[]) {
if(gFam[playerid] == 1)
return SendClientMessage(playerid, TEAM_CYAN_COLOR, "You have your family chat disabled; /togfamily!");
new string[128];
if(isnull(params))
return SendClientMessage(playerid, COLOR_GREY, "USAGE: (/f)amily [family chat]");
//if(AntiAdv(playerid, params)) return 1;
if(PlayerCuffed[playerid] > 0 || GetPVarInt(playerid, "Injured") == 1)
return SendClientMessage(playerid, COLOR_GREY, "You can't talk over /f while you're cuffed, hospitalized or tazed.");
if(PlayerInfo[playerid][pFaction] >= 1 || PlayerInfo[playerid][pGang] < 255) {
new fam = PlayerInfo[playerid][pGang];
new
szRank[64],
szDivision[64],
szEmployer[64];
GetPlayerFactionInfo(playerid, szRank, szDivision, szEmployer);
if(PlayerInfo[playerid][pFaction] != 4 && PlayerInfo[playerid][pFaction] > 0) {
format(string, sizeof(string), "** (( %s %s: %s )) **", szRank, GetPlayerNameEx(playerid), params);
SendFamilyMessage(PlayerInfo[playerid][pFaction], TEAM_AZTECAS_COLOR, string);
}
else if(PlayerInfo[playerid][pFaction] == 4)
{
format(string, sizeof(string), "** %s %s %s: %s **", szDivision, szRank, GetPlayerNameEx(playerid), params);
SendFamilyMessage(PlayerInfo[playerid][pFaction], TEAM_AZTECAS_COLOR, string);
}
else if(PlayerInfo[playerid][pGang] < 255) {
new
szMessage[128],
szRank[64];
switch(PlayerInfo[playerid][pRank])
{
case 1: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank1]);
case 2: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank2]);
case 3: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank3]);
case 4: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank4]);
case 5: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank5]);
case 6: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank6]);
default: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank1]);
}
if(PlayerInfo[playerid][pCrew1] == PlayerInfo[playerid][pGang]) { format(szMessage, sizeof(szMessage), "** (%i) %s %s (%s): %s **", PlayerInfo[playerid][pRank], szRank, GetPlayerNameEx(playerid),FamilyInfo[playerid][FamilyCrewname1], params); }
else if(PlayerInfo[playerid][pCrew2] == PlayerInfo[playerid][pGang]) { format(szMessage, sizeof(szMessage), "** (%i) %s %s (%s): %s **", PlayerInfo[playerid][pRank], szRank, GetPlayerNameEx(playerid),FamilyInfo[playerid][FamilyCrewname2], params); }
else if(PlayerInfo[playerid][pCrew3] == PlayerInfo[playerid][pGang]) { format(szMessage, sizeof(szMessage), "** (%i) %s %s (%s): %s **", PlayerInfo[playerid][pRank], szRank, GetPlayerNameEx(playerid),FamilyInfo[playerid][FamilyCrewname3], params); }
else { format(szMessage, sizeof(szMessage), "** (%i) %s %s: %s **", PlayerInfo[playerid][pRank], szRank, GetPlayerNameEx(playerid), params); }
SendNewFamilyMessage(PlayerInfo[playerid][pGang], TEAM_AZTECAS_COLOR, szMessage);
}
return 1;
}
else SendClientMessage(playerid, COLOR_GRAD2, "You're not a part of a Family!");
return 1;
}
57466
[code]
if(objectInfo[v][oModel] != 0 && objectInfo[v][oPosX] != 0.0 && objectInfo[v][oPosY] != 0.0 && objectInfo[v][oPosZ] != 0.0)
65137
[code]
new string[128];
66675
[code]
new gun = GetPlayerWeapon(playerid);
69393
[code]
if(IsPlayerInGangZone(LandInfo[i][landZone]))
69397
[code]
new Positions[3], Rotations[3];
69400
[code]
GetDynamicObjectPos(LandInfo[i][landObjects][x], Positions[0], Positions[1], Positions[2]);
69401
[code]
GetDynamicObjectRot(LandInfo[i][landObjects][x], Rotations[0], Rotations[1], Rotations[2]);
70200
[code]
stock CreateLandDoor(playerid, land, object, doortype)
70231
[code]
stock CreateLandObject(playerid, land, object)
71197
[code]
new String[128];
78347
[code]
new lstring[16384];
78368
[code]
new lstring[16384];
78392
[code]
GetDynamicObjectRot(LandInfo[land][landObjects][listitem], oldrot[0], oldrot[1], oldrot[2]);
78402
[code]
GetDynamicObjectRot(LandInfo[land][landObjects][listitem], oldrot[0], oldrot[1], oldrot[2]);
80821
[code]
new string[128];
1342 and 1341
[code]
FireworkTotal = 0;//Make Firework back to 0
Fired = 0;//Make Fired back to 0
[hr]
theres the code errors please help me