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

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

Дим M
Topic author, Администратор
Администратор
Avatar
Дим M
Topic author, Администратор
Администратор
Reputation: 80
Posts: 1239
Joined: 5 Apr 2013
With us: 6 years 10 months

#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;
}  
i love you mxIni Mysql

! ! !


  • Similar Topics
    Replies
    Views
    Last post

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

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest