Create a dialog-table
#1

Код:
CMD:weaponids(playerid, params[])
{
	if(PlayerData[playerid][pAdmin] >= 5)
	{
		SendClientMessage(playerid, COLOR_GRAD2, "   ");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 1 = Fists 		        	ID : 2 = Golf Club");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 3 = Night Stick          	ID : 4 = Knife");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 5 = Bata                 	ID : 6 = Lopata");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 7 = Pool Cue             	ID : 8 = Katana");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 9 = Fierastrau           	ID : 10 = Purple Dildo");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 11 = S White Vibrator    	ID : 12 = L White Vibrator");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 13 = Silver Vibrator			ID : 14 = Flowers");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 15 = Baston          		ID : 31 = M4");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 16 = Grenazi             	ID : 32 = Tec9");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 17 = Smoke Grenade       	ID : 33 = Country Rifle");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 18 = Molotov             	ID : 34 = Sniper Rifle");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 19 = Vehicle Missile     	ID : 35 = Rocket Launcher");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 20 = Hydra Flare         	ID : 36 = HS Rocket Launcher");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 21 = Jetpack             	ID : 37 = Flame Thrower");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 22 = 9mM                 	ID : 38 = Mini Gun");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 23 = Silenced 9mm        	ID : 39 = Satchel Charge");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 24 = Desert Eagle        	ID : 40 = Detonator");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 25 = Shotgun             	ID : 41 = Spray can");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 26 = Sawnoff Shotgun     	ID : 42 = Fire Extinguisher");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 27 = Combat Shotgun      	ID : 43 = Camera");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 28 = Micro SMG (Mac 10)  	ID : 44 = Nightvision Goggles");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 29 = SMG (MP5)           	ID : 45 = Infrared Vision");
		SendClientMessage(playerid, COLOR_GRAD2, "ID : 30 = AK47 (Kalashnikov)  	ID : 46 = Parachute");
	}
	else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
	return 1;
}
How can I do this ?
Reply
#2

oh sorry nvm :P
Reply
#3

use strcat and format in dialog
Reply
#4

pawn Код:
CMD:weaponids(playerid, params[])
{
    if(PlayerDate[playerid][pAdmin] >= 5)
    {
        ShowPlayerDialog(playerid, use_ur_own_dialog_id, DIALOG_STYLE_MSGBOX, "Weapon ids!", "ID: 1 = Fists, ID: 2 = Golf Club.... and so on", "Exit", "");
    }
    else SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    return 1;
}
Something like that, just continue by that order and when you want to get a line down you will need to use \n
( eg.: "ID: 1 = Fists\nID: 2 = Golf Club" )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)