Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define menu 735
- new bool:teszt;
- public OnPlayerConnect(playerid)
- {
- if(teszt == true)
- {
- SendClientMessage(playerid,0xff0000ff,"A tulaj most éppen tesztel valamit, ne zavard!");
- Kick(playerid);
- }
- return 1;
- }
- public OnPlayerCommandText(playerid,commandtext[])
- {
- if(strcmp("/tesztmode",commandtext,true) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- ShowPlayerDialog(playerid,menu,DIALOG_STYLE_LIST,"Tesztmód","Bekapcsol\nKikapcsol","Választ","");
- }
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == menu)
- {
- switch(listitem)
- {
- case 0: teszt = true, SendClientMessage(playerid,-1,"Tesztelési mód be!");
- case 1: teszt = false, SendClientMessage(playerid,-1,"Tesztelési mód ki!");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement