Ph0eniX Posted September 22, 2013 Posted September 22, 2013 Salutare cum sa fac cand un admin/vip are 3 warnuri (la VIP / ADM) sa ia remove ? //---------------------------------------------------------------------- if(ASts[playerid][AWarns] == 0) suspend = ""; else if(ASts[playerid][AWarns] == 1) suspend = "{FF0000}(1 Warn)"; else if(ASts[playerid][AWarns] == 2) suspend = "{FF0000}(2 Warns)"; else if(ASts[playerid][AWarns] == 3) suspend = "{FF0000}(3 Warns - Suspended)"; //---------------------------------------------------------------------- if(AccInfo[playerid][pVWarns] == 0) vsuspnd = ""; else if(AccInfo[playerid][pVWarns] == 1)vsuspnd = "{FF0000}(1 Warn)"; else if(AccInfo[playerid][pVWarns] == 2)vsuspnd = "{FF0000}(2 Warns)"; else if(AccInfo[playerid][pVWarns] == 3)vsuspnd = "{FF0000}(3 Warns - Suspended)"; if(ASts[playerid][AWarns] == 3) { AccInfo[playerid][Level] = 0; GameTextForPlayer(playerid, "~r~Admin Level~n~~w~Suspended", 5000, 4); } else if(ASts[playerid][AWarns] == 3) { AccInfo[playerid][Level] = 0; GameTextForPlayer(playerid, "~r~Demoted", 5000, 4); BUD::SetIntEntry(userid, "Admin", 0); BUD::SetIntEntry(userid, "AdmWarns", 0); } //-------------------------------------------------------------------------- if(AccInfo[playerid][pVWarns] == 3) { AccInfo[playerid][pVip] = 0; GameTextForPlayer(playerid, "~r~VIP Level~n~~w~Suspended", 5000, 4); } else if(AccInfo[playerid][pVWarns] == 3) { AccInfo[playerid][pVip] = 0; GameTextForPlayer(playerid, "~r~Demoted", 5000, 4); BUD::SetIntEntry(userid, "Vip", 0); BUD::SetIntEntry(userid, "VipWarns", 0); }sau...spunetimi ce sa va arat , sau sa modific... public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; }
Ph0eniX Posted September 22, 2013 Author Posted September 22, 2013 ba da se poate :) public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; }
Ph0eniX Posted September 22, 2013 Author Posted September 22, 2013 nu am niciun warn...asa e la system WARN LA VIP si la ADMIN cand are 3 warnuri sa ia remove public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; }
Gireada Posted September 22, 2013 Posted September 22, 2013 Eu vad ca face asta deja BUD::SetIntEntry(userid, "Vip", 0); BUD::SetIntEntry(userid, "VipWarns", 0);
Question
Ph0eniX
Salutare cum sa fac cand un admin/vip are 3 warnuri (la VIP / ADM) sa ia remove ?
//---------------------------------------------------------------------- if(ASts[playerid][AWarns] == 0) suspend = ""; else if(ASts[playerid][AWarns] == 1) suspend = "{FF0000}(1 Warn)"; else if(ASts[playerid][AWarns] == 2) suspend = "{FF0000}(2 Warns)"; else if(ASts[playerid][AWarns] == 3) suspend = "{FF0000}(3 Warns - Suspended)"; //---------------------------------------------------------------------- if(AccInfo[playerid][pVWarns] == 0) vsuspnd = ""; else if(AccInfo[playerid][pVWarns] == 1)vsuspnd = "{FF0000}(1 Warn)"; else if(AccInfo[playerid][pVWarns] == 2)vsuspnd = "{FF0000}(2 Warns)"; else if(AccInfo[playerid][pVWarns] == 3)vsuspnd = "{FF0000}(3 Warns - Suspended)";if(ASts[playerid][AWarns] == 3) { AccInfo[playerid][Level] = 0; GameTextForPlayer(playerid, "~r~Admin Level~n~~w~Suspended", 5000, 4); } else if(ASts[playerid][AWarns] == 3) { AccInfo[playerid][Level] = 0; GameTextForPlayer(playerid, "~r~Demoted", 5000, 4); BUD::SetIntEntry(userid, "Admin", 0); BUD::SetIntEntry(userid, "AdmWarns", 0); } //-------------------------------------------------------------------------- if(AccInfo[playerid][pVWarns] == 3) { AccInfo[playerid][pVip] = 0; GameTextForPlayer(playerid, "~r~VIP Level~n~~w~Suspended", 5000, 4); } else if(AccInfo[playerid][pVWarns] == 3) { AccInfo[playerid][pVip] = 0; GameTextForPlayer(playerid, "~r~Demoted", 5000, 4); BUD::SetIntEntry(userid, "Vip", 0); BUD::SetIntEntry(userid, "VipWarns", 0); }sau...spunetimi ce sa va arat , sau sa modific...
public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; }5 answers to this question
Recommended Posts