Raised This Month: $ Target: $400
 0% 

[ES][ZP] Flashlight Colours


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nike!
Senior Member
Join Date: May 2009
Location: Melmac
Old 09-29-2010 , 18:44   [ES][ZP] Flashlight Colours
#1

Hola, tengo un problema al elegir los colores de linterna, no se que ago mal dejo los codigos:

PHP Code:
// Players vars
new g_colorlinterna[33][3
-
PHP Code:
// Client joins the game
g_colorlinterna[id] = { 255255255 
-
PHP Code:
public menu_flashlight(id)
{
    new 
menu menu_create("\wElige tu Color de Linterna^n""menu_linter")
    
menu_additem(menu"\w Blanca""1"0)
    
menu_additem(menu"\w Roja""2"0)
    
menu_additem(menu"\w Verde""3"0)
    
menu_additem(menu"\w Azul""4"0)
    
menu_additem(menu"\w Celeste""5"0)
    
menu_additem(menu"\w Rosa""6"0)
    
    
menu_setprop(menuMPROP_EXITNAME"Salir")
    
menu_display(idmenu0)
}

// linterna clor
public menu_linter(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], iName[64], accesscallback
    menu_item_getinfo
(menuitemaccessdata5iName63callback)
    
    switch(
str_to_num(data))
    {
        case 
1g_colorlinterna[id] = { 255255255 }
        case 
2g_colorlinterna[id] = { 2550}
        case 
3g_colorlinterna[id] = { 0255}
        case 
4g_colorlinterna[id] = { 00255 }
        case 
5g_colorlinterna[id] = { 0255255 }
        case 
6g_colorlinterna[id] = { 2550255 }
    }
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED

es todo.
__________________
nike"

Last edited by nike!; 09-29-2010 at 18:51.
nike! is offline
Send a message via MSN to nike!
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode