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

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

SJplayer M
Topic author, Модератор
Модератор
Avatar
SJplayer M
Topic author, Модератор
Модератор
Reputation: 26
Posts: 184
Joined: 25 May 2013
With us: 5 years 10 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
Старшина
Старшина
Reputation: 11
Posts: 130
Joined: 5 Jul 2013
With us: 5 years 9 months

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

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


  • Similar Topics
    Replies
    Views
    Last post

Return to “Команды”