16.09.2011, 15:00
How to saves teleports?
#include <a_samp>
#include ZCMD
#define DIALOG_TELEPORT (0)
CMD:teleports(playerid, params[])
{
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(playerid, dialogid, response, listitem, inputtext[])
{
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;
}