How select players in dialog
#4

I hope that helps:
PHP код:
new dialoglist[1024], name[32];
new 
ii=0;
for(new 
i=0i<MAX_PLAYERSi++){
    if(
IsPlayerConnected(i)){
        
GetPlayerName(inamesizeof(name));
        
format(dialoglist,sizeof(dialoglist),"%s\n%s",dialoglist,name);
        
haxedplayer[ii]=i;
        
ii+=1;
    }
}
return 
ShowPlayerDialog(playerid,723,DIALOG_STYLE_LIST,"Bank hack program",dialoglist,"Option 1""Option 2");
switch(
dialogid==723){
    if(!
response) return SendClientMessage(playerid0xFF0000FF"You cancelled.");
    else return 
SendClientMessage(haxedplayer[listitem],COLOR_RED,"LOOOL");

Reply


Messages In This Thread
How select players in dialog - by liinor - 27.05.2012, 20:35
Re: How select players in dialog - by FalconX - 27.05.2012, 20:47
Re: How select players in dialog - by liinor - 27.05.2012, 20:53
Re: How select players in dialog - by mati233 - 28.05.2012, 00:06
Re: How select players in dialog - by Jefff - 28.05.2012, 00:49
Re: How select players in dialog - by liinor - 28.05.2012, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)