Thread: ArrayDestroy()
View Single Post
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 05-06-2011 , 08:07   Re: ArrayDestroy()
#2

J'ai regarder les natives, première fois que je test un truc avec, essaie ça :

PHP Code:
#include <amxmodx>

new Array: SurName;

public 
plugin_precache( )
{
    
SurName ArrayCreate(321)
}

public 
Logevent_Round_End()
{    
    new 
iPlayersCt[32];
    new 
iNumCt;
    
get_players(iPlayersCtiNumCt"ae""CT");
    
    if( 
iNumCt == 
    {
        new 
PseudoDuJoueur32 ]
        
get_user_name(iNumCtPseudoDuJoueurcharsmax(PseudoDuJoueur));
        
ArraySetStringSurName0PseudoDuJoueur )
        
client_print_color(0DontChange"^4[ZM]^3 %s ^1a explose tous les Zombies! Il reste donc le Survivant!"SurName);
        
ShowSPR(iNumCt);
        
client_cmd(0"mp3 play sound/ZM/ctwins.mp3" );
        
ArrayDestroy(SurName);
    }

__________________
bboygrun is offline