Twixo 1 Odesláno: 21. Červenec, 2016 Share Odesláno: 21. Červenec, 2016 (upraveno) Už som to tu riešil. Stále neviem prečo mi unjailne iba ID 0. Robil som uplne rovnako aj unmute a to mi unmutne všetky IDčka. A ten jail opravujem niečo cez 3 dni. dcmd_unmute(playerid, params[]) { LEVEL(1); new id = strval(params),duvod[128]; { if(sscanf(params,"uz",id,duvod)) return SendClientMessage(playerid,COLOR_RED, "[ ! ] {FFFFFF}Použi: /mute ID DOVOD"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED,"[ ! ] {FFFFFF} Hráč neni pripojený"); if(GetPVarInt(id,"MuteSeconds") == 0) return SendClientMessage(playerid,COLOR_RED," [ ! ] {FFFFFF}Hráč neni umlčaný"); SetPVarInt(id,"MuteSeconds",0); new string[255]; format(string,sizeof(string),"Administrátor %s odmlčel hráče %s [Dôvod: %s]",Jmeno(playerid),Jmeno(id),duvod); SendClientMessageToAll(COLOR_RED,string); SendClientMessage(id,COLOR_RED,"Byl jste odmlčen!"); } return 1; } dcmd_unjail(playerid,params[]) { new id = strval(params),duvod[128]; if(sscanf(params,"uz",id,duvod)) return SendClientMessage(playerid,COLOR_RED, "[ ! ] {FFFFFF}Použi: /unjail ID DOVOD"); if(!IsPlayerConnected(id))return SendClientMessage(playerid,0xFF0000FF,"[ ! ] {FFFFFF}Hráč není připojený"); if(GetPVarInt(id,"JailSeconds") == 0) return SCM(playerid,0xFF0000,"Hráč už neni vo vezení."); { SetPVarInt(id, "JailSeconds", 0); PlayerTextDrawHide(id, jail0[id]); TextDrawHideForPlayer(id, jail1); SendClientMessage(id,-1,"Byl jsi propuštěn!"); SetPlayerPos(id,1958.3783, 1343.1572, 15.3746); SetPlayerInterior(id,0); KillTimer(jailTimers[id]); format(string,sizeof(string),"Administrátor %s prepustil hráča %s [Dôvod: %s]",Jmeno(playerid),Jmeno(id),duvod); SCMTA(0xFF0000FF,string); } return 1; } Edited 21. Červenec, 2016 by Twixo Link to comment Share on other sites More sharing options...
0 Hlavní moderátor vEnd 279 Odesláno: 21. Červenec, 2016 Hlavní moderátor Share Odesláno: 21. Červenec, 2016 Překvapuje mě, že ti to vůbec funguje. Víš vůbec, jak fungují podmínky a větvení? Ty si ty bloky děláš, jak se ti líbí. Přečti si ty návody, udělej mi tu radost. dcmd_unmute(playerid, params[]) { LEVEL(1); new id, duvod[145]; if(sscanf(params,"uz",id,duvod)) return SendClientMessage(playerid,COLOR_RED, "[ ! ] {FFFFFF}Použi: /mute ID DOVOD"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED,"[ ! ] {FFFFFF} Hráč neni pripojený"); if(GetPVarInt(id,"MuteSeconds") == 0) return SendClientMessage(playerid,COLOR_RED," [ ! ] {FFFFFF}Hráč neni umlčaný"); SetPVarInt(id,"MuteSeconds",0); format(duvod,sizeof(duvod),"Administrátor %s odmlčel hráče %s [Dôvod: %s]",Jmeno(playerid),Jmeno(id),duvod); SendClientMessageToAll(COLOR_RED,duvod); SendClientMessage(id,COLOR_RED,"Byl jste odmlčen!"); return 1; } To druhé si zkus opravit sám, rozdíly mezi tvým unmute a mým unmute vidíš. Link to comment Share on other sites More sharing options...
0 Twixo 1 Odesláno: 21. Červenec, 2016 Author Share Odesláno: 21. Červenec, 2016 Jáj bože, tie zatvory Ja to robil nejak takto vždy. No musim to opraviť. btw. už som si to opravil díky tebe. dcmd_unjail(playerid,params[]) { LEVEL(1); new id,duvod[145]; if(sscanf(params,"uz",id,duvod)) return SendClientMessage(playerid,COLOR_RED, "[ ! ] {FFFFFF}Použi: /unjail [ ID ] [ DOVOD ]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED,"[ ! ] {FFFFFF} Hráč neni pripojený"); if(GetPVarInt(id,"JailSeconds") == 0) return SendClientMessage(playerid,COLOR_RED," [ ! ] {FFFFFF}Hráč neni vo väzený"); SetPVarInt(id, "JailSeconds", 0); PlayerTextDrawHide(id, jail0[id]); TextDrawHideForPlayer(id, jail1); SendClientMessage(id,-1,"Byl jsi propuštěn!"); SetPlayerPos(id,1958.3783, 1343.1572, 15.3746); SetPlayerInterior(id,0); KillTimer(jailTimers[id]); format(duvod,sizeof(duvod),"Administrátor %s prepustil hráče %s [Dôvod: %s]",Jmeno(playerid),Jmeno(id),duvod); SCMTA(0xFF0000FF,duvod); return 1; } Link to comment Share on other sites More sharing options...
Dotaz
Twixo 1
Už som to tu riešil. Stále neviem prečo mi unjailne iba ID 0. Robil som uplne rovnako aj unmute a to mi unmutne všetky IDčka. A ten jail opravujem niečo cez 3 dni.
Edited by TwixoLink to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now