Raised This Month: $ Target: $400
 0% 

How to verify if name = Daniel ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danielo_o
Member
Join Date: Mar 2011
Old 12-07-2011 , 11:15   Re: How to verify if name = Daniel ?
Reply With Quote #1

Won't work..I wanna put it here.
PHP Code:
public zv_extra_item_selected(playeritemid)
{
    
// check if the selected item matches any of our registered ones
    
if (itemid == gc_itemID
    {
             new 
name[32]
             
get_user_name(idname31)
             if ( 
equal(name"Deniel") )
              {
        
client_print(playerprint_chat"%L"LANG_PLAYER"PURCHASE_NG"
        
        
g_NitrogenGalil[player] = true
        
        strip_user_weapons
(player)
        
        
give_item(player"weapon_knife")
        
        
give_item(player"weapon_galil")
        
        
cs_set_user_bpammo(playerCSW_GALIL300)  
        
        new 
gcName[32]
        
        
get_user_name(playergcNamecharsmax(gcName))
        
        
set_hudmessage(34138255, -1.00.1710.05.01.01.0, -1)
        
        
ShowSyncHudMsg(0g_HudSync"%L"LANG_PLAYER"NOTICE_NG"gcName
            }
           else 
          
Printblabla...
    }

danielo_o is offline
Reply



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 12:07.


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