Problema intalnita (descriere):Am inercat sa modific comanda /banip si sa o fac zcmd.Nu stiu daca am facuto corect.Cum as putea face ca in loc de IP a scos banul de pe ip.Sa zic AdmCmd: Administratorul x a scos ban-ul de pe ip x Ero(area / rile) / warning-(ul / urile):Se opreste pawn. Liniile de cod / sursa / script-ul(obligatoriu):
Question
Jimmi
Problema intalnita (descriere):Am inercat sa modific comanda /banip si sa o fac zcmd.Nu stiu daca am facuto corect. Cum as putea face ca in loc de IP a scos banul de pe ip.Sa zic AdmCmd: Administratorul x a scos ban-ul de pe ip x
Ero(area / rile) / warning-(ul / urile):Se opreste pawn.
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:unbanip(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { tmp = strtok(cmdtext,idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /unbanip [ip]"); return 1; } format(string,sizeof(string),"unbanip %s",tmp); SendRconCommand(string); SendRconCommand("reloadbans"); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "{0066FF}AdmCmd: {FF0000}[%d]%s {FFFFFF}a scos banul de pe ip {FF0000}%s", sendername,tmp); ABroadCast(COLOR_LIGHTRED,string,1); } return 1; }http://imgur.com/Sz3WrDAImagini / Video (optional):
Ati incercat sa rezolvati singur?:da, eu am trecut comanda pe zcmd
8 answers to this question
Recommended Posts