_Pepa_ 0 Odesláno: 17. Únor, 2012 Share Odesláno: 17. Únor, 2012 Prosím o pomoc s /mute id minuty důvod :shifty: Když dám na serveru /mute id minuty duvod umlcito napise to ze to umlcelo hrace ale pritom muze psat prosim kde je chyba ? dcmd_mute(playerid,params[]) { if(Alvl[playerid] >= 1) { new id = strval(params), string[128], minuty, duvod[25]; if(sscanf(params,"udz",id,minuty,duvod)) return SCM(playerid,COLOR_ORANGE,"Použití: /mute [iD] [MINUTY] [DŮVOD]"); else if(GetPVarInt(id,"Mute") == 1) return SCM(playerid,COLOR_ORANGE,"Hráč už je umlčený"); else if(Alvl[id] >= 1) return SCM(playerid,COLOR_ORANGE,"Nemůžeš umlčet administrátora"); else SetPVarInt(id,"Mute",1); SetTimerEx("muted",minuty*1000,0,"i",id); format(string,sizeof(string),"Administrátor %s umlčel hráče %s na %d Minut z důvodů %s",PlayerName(playerid),PlayerName(id),minuty,duvod); SCMTA(COLOR_RED,string); }else SCM(playerid,COLOR_ORANGE,"Nemáš dostatečné admin práva"); return true; } public muted(playerid) { if(GetPVarInt(playerid,"Muted") ==1) { SetPVarInt(playerid,"Muted",0); GameTextForPlayer(playerid,"~>~ Nyní můžes zase psát ! ~<~",1000,2); } return true; } public OnPlayerText(playerid,text[]) { if(GetPVarInt(playerid,"Muted") == 1) { SCM(playerid,COLOR_RED,"Jsi umlčený,nemůžeš psát!"); return false; } return true; } Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 17. Únor, 2012 Share Odesláno: 17. Únor, 2012 špatně jsem pojmenoval PVar dcmd_mute(playerid,params[]) { if(Alvl[playerid] >= 1) { new id = strval(params), string[128], minuty, duvod[25]; if(sscanf(params,"udz",id,minuty,duvod)) return SCM(playerid,COLOR_ORANGE,"Použití: /mute [iD] [MINUTY] [DŮVOD]"); else if(GetPVarInt(id,"Mute") == 1) return SCM(playerid,COLOR_ORANGE,"Hráč už je umlčený"); else if(Alvl[id] >= 1) return SCM(playerid,COLOR_ORANGE,"Nemůžeš umlčet administrátora"); else SetPVarInt(id,"Muted",1); SetTimerEx("muted",minuty*1000,0,"i",id); format(string,sizeof(string),"Administrátor %s umlčel hráče %s na %d Minut z důvodů %s",PlayerName(playerid),PlayerName(id),minuty,duvod); SCMTA(COLOR_RED,string); }else SCM(playerid,COLOR_ORANGE,"Nemáš dostatečné admin práva"); return true; } public muted(playerid) { if(GetPVarInt(playerid,"Muted") ==1) { SetPVarInt(playerid,"Muted",0); GameTextForPlayer(playerid,"~>~ Nyní můžes zase psát ! ~<~",1000,2); } return true; } public OnPlayerText(playerid,text[]) { if(GetPVarInt(playerid,"Muted") == 1) { SCM(playerid,COLOR_RED,"Jsi umlčený,nemůžeš psát!"); return false; } return true; } A mělo by to jít bez problému Link to comment Share on other sites More sharing options...
0 milous22 14 Odesláno: 17. Únor, 2012 Share Odesláno: 17. Únor, 2012 SetTimerEx("muted",minuty*1000,0,"i",id); pokiaľ to chceš na minúty, tak by to malo byť minuty*60000 Link to comment Share on other sites More sharing options...
Dotaz
_Pepa_ 0
Prosím o pomoc s /mute id minuty důvod :shifty:
Když dám na serveru /mute id minuty duvod umlcito napise to ze to umlcelo hrace ale pritom muze psat prosim kde je chyba ?
Link 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