09.11.2016, 20:44
I search like 1 hour in CMD commands only commands that have PlayerInfo[giveplayerid][pAdmin] are :
Код:
CMD:contract line of code with pAdmin "if(PlayerInfo[giveplayerid][pAdmin] > 0) return SendClientMessage(playerid, COLOR_ERROR, "You cannot contract a admin."); if(MoneyACheck(playerid, money, 10000, 1000000)) return 1;" CMD:warn line of code with pAdmin : if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, COLOR_ERROR, "You can't do this."); CMD:kick line of code with pAdmin: if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, COLOR_ERROR, "You can't do this."); format(gString, sizeof(gString), "%s was kicked by admin %s, reason: %s.", GetName(giveplayerid), GetName(playerid), reason); CMD:ban line of code with pAdmin: if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, COLOR_ERROR, "You can't do this."); AddBan(playerid,giveplayerid,days,reason,0); CMD:banip line of code with pAdmin: if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, COLOR_ERROR, "You can't do this.");