FrOsTy14 4 Odesláno: 19. Prosinec, 2014 Share Odesláno: 19. Prosinec, 2014 Zdravím, potřeboval bych,aby mi to napsalo tu zprávu a pak to kicklo, ale ono to kickne a ten hráč neví za co. dcmd_kick(playerid, params[]) { new Adminp = Admin[playerid]; if(Adminp >= 2) { new id; new Duvod[128]; new Hrac[64]; new Hrac2[64]; new Hrac3[64]; new Hname[MAX_PLAYER_NAME]; if(sscanf(params, "us", id, Duvod)) { SendClientMessage(playerid, COLOR_WHITE,"/kick ID DŮVOD"); return 1; } else if(id == INVALID_PLAYER_ID) { SendClientMessage(playerid, COLOR_WHITE,"Hráč není na serveru!"); } else { GetPlayerName(id, Hname, sizeof(Hname)); GetPlayerName(playerid, Hrac, sizeof(Hrac)); format(Hrac, sizeof(Hrac),"Hráč %s byl vyhozen Administrátorem %s",Hname, Hrac); SendClientMessageToAll(COLOR_RED, Hrac); format(Hrac2, sizeof(Hrac),"Byl jsi vyhozen Administrátorem %s!", Hrac); SendClientMessage(id, COLOR_RED,Hrac2); format(Hrac3, sizeof(Hrac3),"Hráč %s byl vyhozen!",Hname); SendClientMessage(playerid, COLOR_RED,Hrac3); Kick(id); return 1; } return 1; } return 1; } Link to comment Share on other sites More sharing options...
0 Lusky 4 Odesláno: 19. Prosinec, 2014 Share Odesláno: 19. Prosinec, 2014 Pokiaľ viem tak to už nie je možné. Skús tam medzi tým vyhodením a správou dať zmeškanie alebo skús použiť dialóg. Link to comment Share on other sites More sharing options...
0 Robin 67 Odesláno: 19. Prosinec, 2014 Share Odesláno: 19. Prosinec, 2014 Preco to uz neni mozne? Link to comment Share on other sites More sharing options...
0 Lusky 4 Odesláno: 19. Prosinec, 2014 Share Odesláno: 19. Prosinec, 2014 Myslek som tým spôsobom, ktorý použil on, zle som to napísal. Link to comment Share on other sites More sharing options...
0 VolfikCZ 33 Odesláno: 19. Prosinec, 2014 Share Odesláno: 19. Prosinec, 2014 ale je to možné vytvoř si forward a následne public do toho publicu dej Kick prostě vyhození hráče ze serveru a pak do toho příkazu kick vlož timer a hotovo prosim tě ten kick co máš v příkazu smaž protože kdyby si ho tam nechal tak by to nemělo vůbec význam ten public Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 19. Prosinec, 2014 Share Odesláno: 19. Prosinec, 2014 dcmd_kick(playerid, params[]){ new Adminp = Admin[playerid]; if(Adminp >= 2) { new id; new Duvod[128]; new Hrac[64]; new Hrac2[64]; new Hrac3[64]; new Hname[MAX_PLAYER_NAME]; if(sscanf(params, "us", id, Duvod)) { return SendClientMessage(playerid, COLOR_WHITE,"/kick ID DŮVOD"); } else if(id == INVALID_PLAYER_ID) { return SendClientMessage(playerid, COLOR_WHITE,"Hráč není na serveru!"); } else { GetPlayerName(id, Hname, sizeof(Hname)); GetPlayerName(playerid, Hrac, sizeof(Hrac)); format(Hrac, sizeof(Hrac),"Hráč %s byl vyhozen Administrátorem %s",Hname, Hrac); SendClientMessageToAll(COLOR_RED, Hrac); format(Hrac2, sizeof(Hrac),"Byl jsi vyhozen Administrátorem %s!", Hrac); SendClientMessage(id, COLOR_RED,Hrac2); format(Hrac3, sizeof(Hrac3),"Hráč %s byl vyhozen!",Hname); SendClientMessage(playerid, COLOR_RED,Hrac3); return SetTimerEx("Kick_t", 50, 0, "i", id); } } return 1;}forward Kick_t(playerid);public Kick_t(playerid){ if(IsPlayerConnected(playerid)) Kick(playerid); return 1;} Link to comment Share on other sites More sharing options...
Dotaz
FrOsTy14 4
Zdravím, potřeboval bych,aby mi to napsalo tu zprávu a pak to kicklo, ale ono to kickne a ten hráč neví za co.
Link to comment
Share on other sites
5 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