- 0
Problema admpanel burned
-
Similar Content
-
- 36 replies
- 5,166 views
-
Problema turf
By Soryn.,
- 2 answers
- 209 views
-
- 1 reply
- 166 views
-
- 19 replies
- 607 views
-
Problema
By ImJustSlim,
- 3 answers
- 279 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
KenzonAdv
Salut imi da aceste errori cand il pun pe gm burned
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27224) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27224) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27224) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27225) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27230) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27230) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27230) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27283) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27283) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27283) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27287) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27287) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27287) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27369) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27369) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27369) : warning 202: number of arguments does not match definition
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27493) : error 017: undefined symbol "Admins@YSII_Cg"
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27493) : error 017: undefined symbol "Admins@YSII_Ag"
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27573) : error 017: undefined symbol "Admins@YSII_Cg"
C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27573) : error 017: undefined symbol "Admins@YSII_Ag"
Cod:
function SendPanelActions() {
if(!cache_num_rows()) return 1;
new actionID = cache_get_field_content_int(0, "action_id"),
actionUserid = cache_get_field_content_int(0, "action_userid"),
actionType = cache_get_field_content_int(0, "action_type"),
actionTime = cache_get_field_content_int(0, "action_time"),
actionComplaint = cache_get_field_content_int(0, "action_complaint"),
actionReason[50],
actionBy[24],
actionUser[24],
formatString[200];
cache_get_field_content(0, "action_reason", actionReason, SQL, 50);
cache_get_field_content(0, "action_by", actionBy, SQL, 24);
cache_get_field_content(0, "action_user", actionUser, SQL, 24);
new id = -1, ip[25];
foreach(new i: Player) {
if(IsPlayerLogged == 0) continue;
if(PlayerInfo[pSQLID] == actionUserid) {
id = i;
break;
}
}
// 0 => 'Kick',
// 1 => 'Ban',
// 2 => 'Mute',
// 3 => 'Warn',
// 4 => 'DM',
// 5 => 'DMP',
// 6 => 'FPunish',
// 7 => 'FWarn',
// 8 => 'Uninvite',
// 9 => 'Jail'
new complaintString[30];
if(actionComplaint != -1) format(complaintString, 30, " [complaintid: #%d]", actionComplaint);
else format(complaintString, 30, " [panel action]");
new reasonText[50];
if(strlen(actionReason) > 1) format(reasonText, 50, ". Motiv: %s", actionReason);
switch(actionType) {
case 0: {
format(formatString, 160, "AdmPanel: %s %s a primit Kick de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
if(id != -1) KickEx(id);
}
case 1: {
if(actionTime > 0) format(formatString, 160, "AdmPanel: %s %s a primit Ban %d zile de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
else format(formatString, 160, "AdmPanel: %s %s a primit Ban Permanent de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
if(actionTime == 0) {
mysql_format(SQL, formatString, 160, "UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `ID`='%d'", actionBy, actionReason, actionUserid);
mysql_tquery(SQL, formatString, "", "");
if(id != -1) {
PlayerInfo[id][pBanned] = 1;
GetPlayerIp(id, ip, sizeof(ip));
// Banlog(ip, actionUser, actionBy, actionReason, 0);
Banlog(actionUser, actionBy, actionReason, ip, 0, 0, 1, 0);
BanSerial(id, -1, actionReason, actionBy);
Ban(id);
// KickEx(id);
}
// else Banlog("Offline", actionUser, actionBy, actionReason, 0);
else Banlog(actionUser, actionBy, actionReason, "Offline", 0, 0, 1, 0);
}
else {
new year,month,day;
getdate(year, month, day);
day += actionTime;
if(IsMonth31(month)) {
if(day > 31) {
month += 1;
if(month > 12) {
year += 1;
while(day > 31) day -= 31;
}
else while(day > 31) day -= 31;
}
}
else if(!IsMonth31(month)) {
if(day > 30) {
month += 1;
if(month > 12) {
year += 1;
while(day > 30) day -= 30;
}
else while(day > 30) day -= 30;
}
}
else if(!IsMonth31(month) && IsMonth29(year) && month == 2) {
if(day > 29) {
month += 1;
if(month > 12) {
year += 1;
while(day > 29) day -= 29;
}
else while(day > 29) day -= 29;
}
}
else if(!IsMonth31(month) && !IsMonth29(year) && month == 2) {
if(day > 28) {
month += 1;
if(month > 12) {
year += 1;
while(day > 28) day -= 28;
}
else while(day > 28) day -= 28;
}
}
mysql_format(SQL, formatString, 200, "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `ID`='%d'",year, month, day, actionBy, actionReason, actionUserid);
mysql_tquery(SQL, formatString, "", "");
if(id != -1) {
GetPlayerIp(id, ip, sizeof(ip));
// Banlog(ip, actionUser, actionBy, actionReason, actionTime);
Banlog(actionUser, actionBy, actionReason, ip, actionTime, 0, 0, 0);
KickEx(id);
}
// else Banlog("Offline", actionUser, actionBy, actionReason, actionTime);
else Banlog(actionUser, actionBy, actionReason, "Offline", actionTime, 0, 0, 0);
}
}
case 2: {
mysql_format(SQL, formatString, 100, "UPDATE `users` SET `Muted`='1', `MuteTime`='%d' WHERE `ID`='%d'", actionTime * 60, actionUserid);
mysql_tquery(SQL, formatString, "", "");
if(id != -1) PlayerInfo[id][pMuteTime] = actionTime * 60, PlayerInfo[id][pMuted] = 1;
format(formatString, 160, "AdmPanel: %s %s a primit Mute pentru %d minute de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
}
case 3: {
mysql_format(SQL, formatString, 80, "UPDATE `users` SET `Warns` = `Warns`+1 WHERE `ID`='%d'", actionUserid);
mysql_tquery(SQL, formatString, "", "");
mysql_format(SQL, formatString, 80, "SELECT `Warns` FROM `users` WHERE `ID` = '%d' LIMIT 1;", actionUserid);
mysql_tquery(SQL, formatString, "panelWarn", "ss", actionBy, actionUser);
format(formatString, 160, "AdmPanel: %s %s a primit Warn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
if(id != -1) {
PlayerInfo[id][pWarns] ++;
if(PlayerInfo[id][pWarns] >= 3) {
new year,month,day;
getdate(year, month, day);
day += 3;
if(IsMonth31(month)) {
if(day > 31) {
month += 1;
if(month > 12) {
year += 1;
while(day > 31) day -= 31;
}
else while(day > 31) day -= 31;
}
}
else if(!IsMonth31(month)) {
if(day > 30) {
month += 1;
if(month > 12) {
year += 1;
while(day > 30) day -= 30;
}
else while(day > 30) day -= 30;
}
}
else if(!IsMonth31(month) && IsMonth29(year) && month == 2) {
if(day > 29) {
month += 1;
if(month > 12) {
year += 1;
while(day > 29) day -= 29;
}
else while(day > 29) day -= 29;
}
}
else if(!IsMonth31(month) && !IsMonth29(year) && month == 2) {
if(day > 28) {
month += 1;
if(month > 12) {
year += 1;
while(day > 28) day -= 28;
}
else while(day > 28) day -= 28;
}
}
PlayerInfo[id][pBTemp] = 1;
PlayerInfo[id][pBYear] = year;
PlayerInfo[id][pBMonth] = month;
PlayerInfo[id][pBDay] = day;
strmid(PlayerInfo[id][pBBy], actionBy, 0, 24, 255);
format(PlayerInfo[id][pBReason], 30, "3/3 warns");
Update(id,pBTempx);
Update(id,pBYearx);
Update(id,pBMonthx);
Update(id,pBDayx);
Update(id,pBByx);
Update(id,pBReasonx);
PlayerInfo[id][pWarns] = 0;
Update(id,pWarnsx);
GetPlayerIp(id, ip, sizeof(ip));
Banlog(actionUser, actionBy, "3/3 Warnings", ip, 3, 0, 0, 0);
KickEx(id);
}
}
}
case 4: {
format(formatString, 160, "AdmPanel: %s %s a primit Jail (DM) pentru 15 minute de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `GunLic`='0', `GunLicT`='0', `GunLicS`='5', `Jailed` = '2', `JailTime` = '15' WHERE `ID`='%d'", actionUserid);
mysql_tquery(SQL, formatString, "", "");
if(id != -1) {
ResetWeapons(id);
SetPlayerWantedLevel(id, 6);
PlayerInfo[id][pWantedLevel] = 0;
Update(id, pWantedLevelx);
PlayerInfo[id][pJailed] = 2;
PlayerInfo[id][pJailTime] = 15*60;
JailPrice[id] = 0;
UpdateVar(id, "AJail", 1);
PlayerInfo[id][pAJail] = 1;
SendClientMessage(id, COLOR_WARNING, "Licenta ta de arme a fost confiscata timp de 5 ore deoarece ai primit jail pentru DM!");
PlayerInfo[id][pGunLicS] = 5;
PlayerInfo[id][pGunLic] = 0;
PlayerInfo[id][pGunLicT] = 0;
ResetPlayerWeapons(id);
SpawnPlayer(id);
}
}
case 5: {
format(formatString, 160, "AdmPanel: %s %s a primit Jail (DMP) pentru 10 minute de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `Jailed` = '2', `JailTime` = '10' WHERE `ID`='%d'", actionUserid);
mysql_tquery(SQL, formatString, "", "");
if(id != -1) {
ResetWeapons(id);
SetPlayerWantedLevel(id, 6);
PlayerInfo[id][pWantedLevel] = 0;
Update(id, pWantedLevelx);
PlayerInfo[id][pJailed] = 2;
PlayerInfo[id][pJailTime] = 10*60;
JailPrice[id] = 0;
UpdateVar(id, "AJail", 1);
PlayerInfo[id][pAJail] = 1;
ResetPlayerWeapons(id);
SpawnPlayer(id);
}
}
case 6: {
format(formatString, 160, "AdmPanel: %s %s a primit %d FPunish de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `FPunish` = '%d' WHERE `ID`='%d'",actionTime, actionUserid);
mysql_tquery(SQL, formatString, "", "");
if(id != -1) {
PlayerInfo[id][pFpunish] = actionTime;
format(formatString, 100, "Ai primit %d FPunish de la administratorul %s.", actionTime, actionBy);
SCM(id, -1, formatString);
}
}
case 7: {
format(formatString, 160, "AdmPanel: %s %s a primit un FWarn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `FWarn` = `FWarn`+1 WHERE `ID`='%d'", actionUserid);
mysql_tquery(SQL, formatString, "", "");
mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid);
mysql_tquery(SQL, formatString, "PanelFWarn", "ssdd", actionBy, actionUser, actionUserid, id);
}
case 8: {
format(formatString, 160, "AdmPanel: %s %s a primit Uninvite cu %d FP de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid);
mysql_tquery(SQL, formatString, "PanelUninvite", "ssddd", actionBy, actionUser, actionUserid, id, actionTime);
}
case 9: {
format(formatString, 160, "AdmPanel: %s %s a primit AJail pentru %d minute de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `Jailed` = '2', `JailTime` = '%d', `WantedLevel` = '0' WHERE `ID`='%d'", actionTime * 60, actionUserid);
mysql_tquery(SQL, formatString, "", "");
if(id != -1) {
ResetWeapons(id);
SetPlayerArmourEx(id, 0);
for(new m = 0; m < 5; m++) SendDeathMessageToPlayer(id, 1001, 1001, 200);
PaintType[id] = 0;
SetPlayerWantedLevel(id, 6);
PlayerInfo[id][pWantedLevel] = 0;
PlayerInfo[id][pJailed] = 2;
PlayerInfo[id][pJailTime] = actionTime*60;
JailPrice[id] = 0;
SpawnPlayer(id);
format(formatString, sizeof(formatString), "Esti inchis pentru %d minute. Admin: %s", actionTime, actionBy);
SendClientMessage(id, COLOR_LIGHTBLUE, formatString);
}
}
/*
10 => 'AWarn',
11 => 'ARemove',
12 => 'HWarn',
13 => 'HRemove',
14 => 'LWarn',
15 => 'LRemove'
*/
case 10: { // AW
format(formatString, 160, "AdmPanel: %s %s a primit un Admin Warn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `AW` = `AW`+1 WHERE `ID`='%d'", actionUserid);
mysql_tquery(SQL, formatString, "", "");
mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid);
mysql_tquery(SQL, formatString, "PanelAWarn", "sdd", actionBy, actionUserid, id);
}
case 11: { // AR
format(formatString, 160, "AdmPanel: %s %s a primit Remove Admin de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `Admin` = '0' WHERE `ID`='%d'", actionUserid);
mysql_tquery(SQL, formatString, "", "");
if(id != -1) {
format(formatString, 128, "Ai fost demis din functia de Admin de administratorul %s!", actionBy);
SCM(id, COLOR_LIGHTBLUE, formatString);
PlayerInfo[id][pAdmin] = 0;
//TextDrawHideForPlayer(id, reportsTD);
Iter_Remove(Admins, id);
PlayerInfo[id][pAW] = 0;
}
}
case 12: { // HW
format(formatString, 160, "AdmPanel: %s %s a primit un Helper Warn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `HW` = `HW`+1 WHERE `ID`='%d'", actionUserid);
mysql_tquery(SQL, formatString, "", "");
mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid);
mysql_tquery(SQL, formatString, "PanelHWarn", "sdd", actionBy, actionUserid, id);
}
case 13: { // HR
format(formatString, 160, "AdmPanel: %s %s a primit Remove Helper de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `Helper` = '0' WHERE `ID`='%d'", actionUserid);
mysql_tquery(SQL, formatString, "", "");
if(id != -1) {
format(formatString, 128, "Ai fost demis din functia de Helper de administratorul %s!", actionBy);
SCM(id, COLOR_LIGHTBLUE, formatString);
PlayerInfo[id][pHelper] = 0;
PlayerInfo[id][pHW] = 0;
}
}
case 14: { // LW
format(formatString, 160, "AdmPanel: %s %s a primit un Leader Warn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "UPDATE `users` SET `LW` = `LW`+1 WHERE `ID`='%d'", actionUserid);
mysql_tquery(SQL, formatString, "", "");
mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid);
mysql_tquery(SQL, formatString, "PanelLWarn", "ssdd", actionBy, actionUser, actionUserid, id);
}
case 15: { // LR
format(formatString, 160, "AdmPanel: %s %s a primit Remove Leader de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString);
mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid);
mysql_tquery(SQL, formatString, "PanelLeaderRemove", "ssdd", actionBy, actionUser, actionUserid, id);
}
}
mysql_format(SQL, formatString, 150, "UPDATE `inf_actions` SET `sentInfo` = '1' WHERE `action_id` = '%d'", actionID);
mysql_tquery(SQL, formatString, "", "");
return 1;
}
function PanelHWarn(adm[], playerDB, onlinepID) {
new hw = cache_get_field_content_int(0, "HW"),
str[128];
if(onlinepID != -1) PlayerInfo[onlinepID][pHW] ++;
if(hw >= 3) {
mysql_format(SQL,str,sizeof(str),"UPDATE `users` SET `Helper`='0', `HW`='0' WHERE `ID`='%d' LIMIT 1", playerDB);
mysql_tquery(SQL,str, "", "");
if(onlinepID != -1) {
format(str, 128, "Ai fost demis din functia de Helper de administratorul %s deoarece ai acumulat 3 AdminWarns.", adm);
SCM(onlinepID, COLOR_LIGHTBLUE, str);
PlayerInfo[onlinepID][pHW] = 0;
PlayerInfo[onlinepID][pHelper] = 0;
}
}
return 1;
}
function PanelAWarn(adm[], playerDB, onlinepID) {
new aw = cache_get_field_content_int(0, "AW"),
str[128];
if(onlinepID != -1) PlayerInfo[onlinepID][pAW] ++;
if(aw >= 3) {
mysql_format(SQL,str,sizeof(str),"UPDATE `users` SET `Admin`='0', `AW`='0' WHERE `ID`='%d' LIMIT 1", playerDB);
mysql_tquery(SQL,str, "", "");
if(onlinepID != -1) {
format(str, 128, "Ai fost demis din functia de Admin de administratorul %s deoarece ai acumulat 3 AdminWarns.", adm);
SCM(onlinepID, COLOR_LIGHTBLUE, str);
PlayerInfo[onlinepID][pAW] = 0;
PlayerInfo[onlinepID][pAdmin] = 0;
//TextDrawHideForPlayer(onlinepID, reportsTD);
Iter_Remove(Admins, onlinepID);
}
}
return 1;
}
function panelWarn(adm[], actUser[]) {
print("panelWarn accesat.");
if(cache_num_rows() == 0) return 1;
new w = cache_get_field_content_int(0, "Warns");
if(w == 3) {
new query[200];
mysql_format(SQL, query, 200, "INSERT INTO `bans` (`PlayerName`, `AdminName`, `Reason`, `IP`, `Days`, `IPBan`, `Permanent`, `Time`, `Active`) VALUES ('%e', '%e', '3/3 Warns', 'Offline', '3', '0', '0', '%d', '1')",
actUser, adm, gettime() + 259200);
mysql_tquery(SQL, query, "", "");
}
print("panelWarn final.");
return 1;
}
function PanelFWarn(adm[], actUser[], playerDB, onlinepID) {
new fw = cache_get_field_content_int(0, "FWarn");
new zile = cache_get_field_content_int(0, "Days");
new actrank = cache_get_field_content_int(0, "Rank");
new actmember = cache_get_field_content_int(0, "Member");
new str[150], query[150];
if(fw >= 3) {
format(str, 150, "%s a fost scos de %s din %s (rank %d) dupa %d zile.", actUser, adm, FactionName(actmember), actrank, zile);
mysql_format(SQL, query, 150, "INSERT INTO faction_logs (`text`,`player`,`leader`) VALUES ('%s','%d','-1')", str, playerDB);
mysql_tquery(SQL, query,"","");
mysql_format(SQL,str, 150,"UPDATE `users` SET `Member`='0',`Rank`='0',`CChar`='250',`FPunish`='20',`FWarn`='0',`Leader`='0',`Days`='0' WHERE `ID`='%d' LIMIT 1", playerDB);
mysql_tquery(SQL,str, "", "");
FactionMembers[actmember] --;
if(onlinepID != -1) {
PlayerInfo[onlinepID][pFACWarns] = 0;
PlayerInfo[onlinepID][pMember] = 0;
PlayerInfo[onlinepID][pRank] = 0;
PlayerInfo[onlinepID][pFpunish] = 20;
PlayerInfo[onlinepID][pDays] = 0;
PlayerInfo[onlinepID][pChar] = 47;
PlayerTextDrawHide(onlinepID, WarTime);
SetPlayerSkinEx(onlinepID, 47);
SpawnPlayer(onlinepID);
format(str, sizeof(str), "Ai fost demis din factiunea %s de AdmBot, motiv: 3/3 FW.", FactionName(actmember));
ShowPlayerDialog(onlinepID, 0, DIALOG_STYLE_MSGBOX, "Uninvite", str, "Close", "");
}
}
return 1;
}
function PanelLeaderRemove(adm[], actUser[], playerDB, onlinepID) {
new zile = cache_get_field_content_int(0, "Days");
new actrank = cache_get_field_content_int(0, "Rank");
new actmember = cache_get_field_content_int(0, "Member");
new str[150], query[150];
format(str, 150, "%s a fost scos de Adminul %s din %s (rank %d) dupa %d zile.", actUser, adm, FactionName(actmember), actrank, zile);
mysql_format(SQL, query, 150, "INSERT INTO faction_logs (`text`,`player`,`leader`) VALUES ('%s','%d','-1')", str, playerDB);
mysql_tquery(SQL, query,"","");
mysql_format(SQL,str, 150,"UPDATE `users` SET `Member`='0',`Rank`='0',`CChar`='250',`FPunish`='20',`FWarn`='0',`Leader`='0',`Days`='0' WHERE `ID`='%d' LIMIT 1", playerDB);
mysql_tquery(SQL,str, "", "");
FactionMembers[actmember] --;
if(onlinepID != -1) {
PlayerInfo[onlinepID][pFACWarns] = 0;
PlayerInfo[onlinepID][pMember] = 0;
PlayerInfo[onlinepID][pRank] = 0;
PlayerInfo[onlinepID][pFpunish] = 20;
PlayerInfo[onlinepID][pDays] = 0;
PlayerInfo[onlinepID][pChar] = 47;
PlayerTextDrawHide(onlinepID, WarTime);
SetPlayerSkinEx(onlinepID, 47);
SpawnPlayer(onlinepID);
format(str, sizeof(str), "Ai fost demis din functia de lider a factiunii %s de %s.", FactionName(actmember), adm);
ShowPlayerDialog(onlinepID, 0, DIALOG_STYLE_MSGBOX, "Uninvite", str, "Close", "");
}
return 1;
}
function PanelLWarn(adm[], actUser[], playerDB, onlinepID) {
new fw = cache_get_field_content_int(0, "LW");
new zile = cache_get_field_content_int(0, "Days");
new actrank = cache_get_field_content_int(0, "Rank");
new actmember = cache_get_field_content_int(0, "Member");
new str[150], query[150];
if(fw >= 3) {
format(str, 150, "%s a fost scos de Adminul %s din %s (rank %d) dupa %d zile (3/3 leader warns).", actUser, adm, FactionName(actmember), actrank, zile);
mysql_format(SQL, query, 150, "INSERT INTO faction_logs (`text`,`player`,`leader`) VALUES ('%s','%d','-1')", str, playerDB);
mysql_tquery(SQL, query,"","");
mysql_format(SQL,str, 150,"UPDATE `users` SET `Member`='0',`Rank`='0',`CChar`='250',`FPunish`='20',`FWarn`='0',`Leader`='0',`Days`='0' WHERE `ID`='%d' LIMIT 1", playerDB);
mysql_tquery(SQL,str, "", "");
FactionMembers[actmember] --;
if(onlinepID != -1) {
PlayerInfo[onlinepID][pFACWarns] = 0;
PlayerInfo[onlinepID][pMember] = 0;
PlayerInfo[onlinepID][pRank] = 0;
PlayerInfo[onlinepID][pFpunish] = 20;
PlayerInfo[onlinepID][pDays] = 0;
PlayerInfo[onlinepID][pChar] = 47;
PlayerTextDrawHide(onlinepID, WarTime);
SetPlayerSkinEx(onlinepID, 47);
SpawnPlayer(onlinepID);
format(str, sizeof(str), "Ai fost demis din functia de lider a factiunii %s de AdmBot, motiv: 3/3 Leader Warns.", FactionName(actmember));
ShowPlayerDialog(onlinepID, 0, DIALOG_STYLE_MSGBOX, "Uninvite", str, "Close", "");
}
}
return 1;
}
function PanelUninvite(adm[], actUser[], playerDB, onlinepID, fp) {
if(cache_num_rows() == 0) return 1;
new zile = cache_get_field_content_int(0, "Days");
new actrank = cache_get_field_content_int(0, "Rank");
new actmember = cache_get_field_content_int(0, "Member");
new str[160], query[150];
format(str, 160, "%s a fost scos de %s din %s (rank %d) dupa %d zile.", actUser, adm, FactionName(actmember), actrank, zile);
mysql_format(SQL, query, 150, "INSERT INTO faction_logs (`text`,`player`,`leader`) VALUES ('%s','%d','-1')", str, playerDB);
mysql_tquery(SQL, query,"","");
mysql_format(SQL, str, 160, "UPDATE `users` SET `Member`='0',`Rank`='0',`CChar`='250',`FPunish`='%d',`FWarn`='0',`Leader`='0',`Days`='0' WHERE `ID`='%d' LIMIT 1", fp, playerDB);
mysql_tquery(SQL, str, "", "");
FactionMembers[actmember] --;
if(onlinepID != -1) {
PlayerInfo[onlinepID][pFACWarns] = 0;
PlayerInfo[onlinepID][pMember] = 0;
PlayerInfo[onlinepID][pRank] = 0;
PlayerInfo[onlinepID][pFpunish] = fp;
PlayerInfo[onlinepID][pDays] = 0;
PlayerInfo[onlinepID][pChar] = 47;
PlayerTextDrawHide(onlinepID, WarTime);
SetPlayerSkinEx(onlinepID, 47);
SpawnPlayer(onlinepID);
format(str, 160, "Ai fost demis din factiunea %s de catre %s [panel action].", FactionName(actmember), adm);
ShowPlayerDialog(onlinepID, 0, DIALOG_STYLE_MSGBOX, "Uninvite", str, "Close", "");
}
return 1;
}
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.