Szerző Téma: gombra kick  (Megtekintve 1244 alkalommal)

gombra kick
« Dátum: 2015. Január 12. - 21:31:27 »
0
Sziasztok!
Hogy tudnám megcsinálni azt hogy ga rákattintok egy gombra akkor kirúgja azt aki rákattintott.
Hogy tudnám megcsinálni?

gombra kick
« Válasz #1 Dátum: 2015. Január 12. - 21:33:40 »
0
// Define the dialog ID so we can handle responses
#define DIALOG_RULES 1
// In some command
ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, \"Server Rules\", \"- No Cheating\\n- No Spamming\\n- Respect Admins\\n\\nDo you agree to these rules?\", \"Yes\", \"No\");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_RULES)
    {
        if(response) // If they clicked \'Yes\' or pressed enter
        {
            SendClientMessage(playerid, COLOR_GREEN, \"Thank you for agreeing to the server rules!\");
        }
        else // Pressed ESC or clicked cancel
        {
            KickWithMessage(playerid, COLOR_RED, \"You MUST agree to the server rules to play here.\");
            //For info & code of this function please refer to the bottom of this article.
        }
        return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }
    return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}

 
Hivatalos wikipéda példájából másoltam ki, neked.
« Utoljára szerkesztve: 2015. Január 12. - 21:37:45 írta ƒlaﻛh »

gombra kick
« Válasz #2 Dátum: 2015. Január 12. - 22:34:02 »
+1
Hát ez MTA Topik nem samp:((

gombra kick
« Válasz #3 Dátum: 2015. Január 12. - 22:52:12 »
0

gombra kick
« Válasz #4 Dátum: 2015. Január 13. - 14:47:33 »
0
sourcePlayer mi a kickplayer nél??

gombra kick
« Válasz #5 Dátum: 2015. Január 13. - 14:58:34 »
0
Gondolom erre próbálsz utalni.

gombra kick
« Válasz #6 Dátum: 2015. Január 13. - 15:26:44 »
0
Melyik gombra?Vagy esetleg gui felület,vagy dx?

gombra kick
« Válasz #7 Dátum: 2015. Január 13. - 19:13:20 »
0
igen arra a wiki érszre gondoltam és a példa kódba találtam ám gui csak a kickplayer rész nem megy:((

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal