12.01.2013, 18:17
Hey again ! I have this command ;
and I need this to be in a dialog, but also the first line to be SendClientMessage. Then I mean, I want the line "%s is reading /lawbook" as SendClientMessage, but the rest in dialog. How can I do this?
Код:
if (strcmp(cmdtext, "/lawbook", true) == 0) { new jstring[128]; new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); format(jstring, sizeof(jstring), "| [ {B4B5B7}%s {FF6347}] {B4B5B7}is reading {FF6347}/Lawbook |", playername); SendClientMessageToAll(COLOR_LIGHTRED, jstring); SendClientMessage(playerid, COLOR_LIGHTRED,".:: {B4B5B7}Any form of Hacking / Cheating is {FF6347}NOT {B4B5B7}tolerated here! {FF6347}::."); SendClientMessage(playerid, COLOR_LIGHTRED,".:: {B4B5B7}Hacking will result in a {FF6347}BAN ::."); SendClientMessage(playerid, COLOR_LIGHTRED,".:: {B4B5B7}Respect each and every person! That means {FF6347}EVERYONE ::."); SendClientMessage(playerid, COLOR_LIGHTRED,".:: {B4B5B7}No DeathMatching! DM will result in {FF6347}Jail {B4B5B7}or {FF6347}Kick ::."); SendClientMessage(playerid, COLOR_LIGHTRED,".:: {B4B5B7}Always respect the Admin's decision! {FF6347}::."); SendClientMessage(playerid, COLOR_LIGHTRED,".:: {B4B5B7} DriftUnitZ is hosted by {FF6347}[{B4B5B7}Cir.Cuz{FF6347}] {B4B5B7}AKA {FF6347}[{B4B5B7}Kudoz{FF6347}] and owned by himself and {FF6347}[{B4B5B7}VeilSide{FF6347}] {FF6347}::."); SendClientMessage(playerid, COLOR_LIGHTRED, " .:: {B4B5B7}THIS SERVER AND SCRIPTS BELONGS TO THE OWNER {FF6347}[{B4B5B7}Cir.Cuz{FF6347}] {B4B5B7}AKA {FF6347}[{B4B5B7}Kudoz{FF6347}]! ::."); SendClientMessage(playerid, COLOR_LIGHTRED, " .:: ^{B4B5B7}EXCEPTIONS ARE LOCATED IN /CREDITS {FF6347}^ ! ::."); SendClientMessage(playerid, COLOR_LIGHTRED,".:: {B4B5B7}Now go out the and have fun! :) ::."); SendClientMessage(playerid, COLOR_LIGHTRED,".:: {B4B5B7}Sincerely , {FF6347}[{B4B5B7}Cir.Cuz{FF6347}] ::."); return 1; }