Save Teleport?
#5

PHP код:
#include <a_samp>
#include ZCMD
#define DIALOG_TELEPORT     (0)
CMD:teleports(playeridparams[])
{
    
ShowPlayerDialog(playerid,DIALOG_TELEPORT,DIALOG_STYLE_LIST,"Teleports","Las Vegas\nSan Friero\nLos Santos","Select","Exit");//you can change name and posstion what ever you like
    
return true;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch(
dialogid)
    {
        case 
DIALOG_TELEPORT:
        {
            if(
response)
            switch(
listitem)
            {
                case 
0:SetPlayerPos(playerid,Float:x,Float:y,Float:z);// here change wich possition you wont [case 0 is lv]
                
case 1:SetPlayerPos(playerid,Float:x,Float:y,Float:z);// here change wich possition you wont [case 1 is sf]
                
case 2:SetPlayerPos(playerid,Float:x,Float:y,Float:z);// here change wich possition you wont [case 2 is ls] and ect...
            
}
        }
    }
    return 
1;

Reply


Messages In This Thread
Save Teleport? - by Light_Man - 16.09.2011, 15:00
Re: Save Teleport? - by doreto - 16.09.2011, 15:01
Re: Save Teleport? - by Light_Man - 16.09.2011, 20:23
Re: Save Teleport? - by DeathTone - 16.09.2011, 20:33
Re: Save Teleport? - by doreto - 17.09.2011, 14:29
Re: Save Teleport? - by Light_Man - 18.09.2011, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)