TheKid 16 Odesláno: 16. Listopad, 2012 Share Odesláno: 16. Listopad, 2012 Ahoj , jak mam udělat aby pokud napíšu příkaz /kick nebo /ban tak aby to kicklo/banlo hrace podle id ? Link to comment Share on other sites More sharing options...
0 Haver 6 Odesláno: 16. Listopad, 2012 Share Odesláno: 16. Listopad, 2012 Cez DCMD Link to comment Share on other sites More sharing options...
0 Domm 11 Odesláno: 16. Listopad, 2012 Share Odesláno: 16. Listopad, 2012 Myslíš něco takového ? dcmd_kick(playerid, params) { new string[100]; new id = strval(params); //Params = ID if(!IsPlayerAdmin(playerid)) return SCM(playerid,bila,"Nejsi na Rconu!"); //Kdyz nesplni Podminku else if(IsPlayerAdmin(playerid)) // Kdyz splni podminku if(!IsPlayerConnected(id)) return SendClientMessage(playerid, bila, "Toto ID není Online!"); //Kdyz id neni online if(!strlen(params)) return SCM(playerid, bila,"Použití: {ff0000}/kick [iD]"); //Kdyz nevyplni parametry format(string, sizeof(string), "Administrátor %s vyhodil hráče %s ze serveru! ",PlayerName(playerid),PlayerName(id)); SendClientMessage(playerid, cervena, string); //odesle format Kick(id); //Kickne id return 1; } PS. Stock PlayerName snad máš... Link to comment Share on other sites More sharing options...
Dotaz
TheKid 16
Ahoj , jak mam udělat aby pokud napíšu příkaz /kick nebo /ban tak aby to kicklo/banlo hrace podle id ?
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