Светящиеся мечи как в Star Wars

Description: Готовые команды
Moderator: SJplayer

SJplayer M
Topic author, Модератор
Модератор
Avatar
SJplayer M
Topic author, Модератор
Модератор
Posts: 196
Joined: 25 May 2013
With us: 11 years 4 months

#1by SJplayer » 3 Jul 2013, 17:15

Светящиеся мечи как в Star Wars
Автор: Tobias

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

Code: Select all

if(dialogid == 900 && response)  
    {  
           new 
swords[] = { 18649,18650,18648,18647,18652,18651 };  
        
SetPlayerAttachedObject(playerid0model_arraylistitem ], 60.070000.030000.8000090.0000000.0000000.0000001.30.72.3);  
        
SetPVarInt(playerid,"Sword",1);  
        return 
GivePlayerWeapon(playerid81);  
    }  


в public OnPlayerCommandText(playerid, cmdtext[])

Code: Select all

if (strcmp(cmdtext"/lightsaber"true)==0)  
    {  
        if(
GetPVarInt(playerid,"Sword") == 0) return ShowPlayerDialog(playerid,900DIALOG_STYLE_LIST"Light Sabres""Green\nYellow\nBlue\nRed\nWhite\nPink""Done!""Quit");  
    }  
    else  
    {  
        
RemovePlayerAttachedObject(playerid,0);  
        return 
SetPVarInt(playerid,"Sword",0);  
    }  


Miranda F
Старшина
Старшина
Avatar
Miranda F
Старшина
Старшина
Posts: 143
Joined: 5 Jul 2013
With us: 11 years 2 months

#2by Miranda » 8 Jul 2013, 16:00

Надо испытать
Image


  • Similar Topics
    Replies
    Views
    Last post

Return to “Команды”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest