28.12.2013, 15:07
Well Hi,
In my gamemode, There is a command called /pc which shows the "Player Colors" when executed. Now, I need a command which should force a player to read it when we execute a command called /fpc.
Example : /fr (Playername / ID ) = /fr 2. When this is executed, On Player ID 2's screen, The player color should automatically appear in dialog.
I'd appreciate your replies on this topic.
Thanks.
In my gamemode, There is a command called /pc which shows the "Player Colors" when executed. Now, I need a command which should force a player to read it when we execute a command called /fpc.
Example : /fr (Playername / ID ) = /fr 2. When this is executed, On Player ID 2's screen, The player color should automatically appear in dialog.
Код:
/pc command : dcmd_pc(playerid,params[]) { #pragma unused params new string[128]; if(IsSpawned[playerid] != 1) { SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command."); return 1; } ShowPlayerDialog(playerid,DIALOG_PC,DIALOG_STYLE_MSGBOX,"{FF0000}Player Colours","{228B22}This green is for Army Personnel and Medics.\n{0000FF}This blue is for police.\n{FF4500}This orange is for CIA.\n{556B2F}This green is for Drivers.\n{FFA500}This orange is for medium wanted players.\n{FFFF00}This yellow is for low wanted players.\n{FF0000}This red is for most wanted players.\n{FFFFFF}This white is for civilians. Police must not shoot these players.","Ok","Cancel"); format(string,sizeof(string),"[ADMIN SPY] %s(%d) has typed /pc.",PlayerName(playerid),playerid); SendClientMessageToAllAdmins(string); format(string,sizeof(string),"4[ADMIN SPY] %s(%d) has typed /pc.",PlayerName(playerid),playerid); IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string); return 1; }
Thanks.