Телепорт через TAB

Description: Готовые решения скриптов, filterScript
Moderator: SJplayer

Дим M
Topic author, Администратор
Администратор
Avatar
Дим M
Topic author, Администратор
Администратор
Posts: 1611
Joined: 5 Apr 2013
With us: 11 years 1 month

#1by Дим » 14 May 2013, 15:39

Телепорт через TAB
Автор: sOflY

Image


В public OnPlayerClickPlayer(playerid, clickedplayerid, source)

Code: Select all

public OnPlayerClickPlayer(playeridclickedplayeridsource)
{
    new 
str[126],sendername[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,sendername,sizeof(sendername));
    
SetPVarInt(clickedplayerid,"PlayerID_Clicked",playerid);
    
format(str,sizeof(str),"Игрок %d хочет телепортироваться к вам, телепортировать его?",sendername);
    
ShowPlayerDialog(clickedplayerid,1,DIALOG_STYLE_MSGBOX,"Телепорт",str,"Ок","Нет");
    return 
1;


В public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

Code: Select all

public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == && response)
    {
        new 
Float:cX,Float:cY,Float:cZ;
        
GetPlayerPos(playerid,cX,cY,cZ);
        
SetPlayerPos(GetPVarInt(playerid,"PlayerID_Clicked"),cX,cY,cZ);
        
DeletePVar(playerid,"PlayerID_Clicked");
    }
    return 
1;
}  
[center]i love you [s]mxIni[/s] Mysql[/center]


Return to “Скрипты / FS”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests