How to script /v and /teles?
#4

AT THE TOP OF YOUR SCRIPT BELOW #INCLUDE <A_SAMP>:
pawn Код:
enum
{
    DIALOG_TELEPORT
}

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/tele", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, DIALOG_TELEPORT, DIALOG_STYLE_LIST, "Teleport", " //Your teleports here (ls\nlv\nsf) etc.", "Option 1", "Option 2");
        return 1;
    }
    return 0;
}
And then this should help for OnDialogResponse: https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply


Messages In This Thread
How to script /v and /teles? - by SuNL1GhT - 28.07.2012, 12:31
Re: How to script /v and /teles? - by McCurdy - 28.07.2012, 12:46
Re: How to script /v and /teles? - by SuNL1GhT - 28.07.2012, 12:48
Re: How to script /v and /teles? - by Cxnnor - 28.07.2012, 13:08
Re: How to script /v and /teles? - by kbalor - 28.07.2012, 13:29
Re: How to script /v and /teles? - by SuNL1GhT - 28.07.2012, 13:47

Forum Jump:


Users browsing this thread: 3 Guest(s)