teleport and weapons menu help !!!
#5

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#define teleportmenu 1
#define weaponmenu 1
#if defined FILTERSCRIPT

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp(cmdtext, "/teleport", true))
    {
        ShowPlayerDialog(playerid, teleportmenu, DIALOG_STYLE_LIST, "Teleport Menu", "DM Area" "\nStunt Area" "\nRace Area" "\nDrift Area" "\nAdmin Area", "Select", "Cancel");
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == teleportmenu)
    {
        if(response)
        {
            if(listitem == 0) //DM AREA
            {
            SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
            SetPlayerInterior(playerid, 10);
            SendClientMessage(playerid, 0xAA3333AA, "Welcome In DM Area");
            return 1;
            }
            if(listitem == 1) //STUNT AREA
            {
            SendClientMessage(playerid, 0xAA3333AA, "NOT SCRIPTED YET");
            }
            if(listitem == 2) //RACE AREA
            {
            SendClientMessage(playerid, 0xAA3333AA, "NOT SCRIPTED YET");
            }
            if(listitem == 3) //DRIFT AREA
            {
            SendClientMessage(playerid, 0xAA3333AA, "NOT SCRIPTED YET");
            }
            if(listitem == 4) //ADMIN AREA
            {
            SetPlayerPos(playerid, -2879.232421875, 455.7958984375, 4.8951416015625);
            SetPlayerInterior(playerid, 0);
            SendClientMessage(playerid, 0xAA3333AA, "Welcome, In Admin Area. Enjoy In The Admin Area");
            }
        }
    }
    return 1;
}
That tele
Reply


Messages In This Thread
teleport and weapons menu help !!! - by [Lsrcr]Rafa - 04.09.2010, 16:05
Re: teleport and weapons menu help !!! - by willsuckformoney - 04.09.2010, 16:16
Re: teleport and weapons menu help !!! - by [Lsrcr]Rafa - 04.09.2010, 16:31
Re: teleport and weapons menu help !!! - by [Lsrcr]Rafa - 04.09.2010, 16:36
Re: teleport and weapons menu help !!! - by willsuckformoney - 04.09.2010, 16:42
Re: teleport and weapons menu help !!! - by [Lsrcr]Rafa - 04.09.2010, 16:44
Re: teleport and weapons menu help !!! - by willsuckformoney - 04.09.2010, 16:48
Re: teleport and weapons menu help !!! - by [Lsrcr]Rafa - 04.09.2010, 16:49
Re: teleport and weapons menu help !!! - by Vandooz - 04.09.2010, 16:50
Re: teleport and weapons menu help !!! - by [Lsrcr]Rafa - 04.09.2010, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)