Save Teleport?
#1

How to saves teleports?
Reply
#2

you mean dialog wich teleport location?
Reply
#3

yes
Reply
#4

you can make your own, just /save where ever you wanna save a location and add it into a dialog, its very simple but im at school and cant make you a sample script atm
Reply
#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
#6

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)