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

Готовые команды

Moderator: SJplayer

Avatar
Topic author
SJplayer M
Модератор
Модератор
Posts: 191
With us: 7 years 4 months

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

Post #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);  
    }  

! ! !


Avatar
Miranda F
Старшина
Старшина
Posts: 143
With us: 7 years 2 months

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

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


  • Similar Topics
    Replies
    Views
    Last post

Return to “Команды”

Who is online

Users browsing this forum: 1 guest