little question
#1

hi guys i have these code if (playerData[playerid][playerMuteTime] != 0)
{
new message[128];
format(message, sizeof(message), "{FFDC2E}[MUTED] {#ff69b4}You are muted for another {FFDC2E}%i {FFFFFF}seconds and cannot talk!", playerData[playerid][playerMuteTime]);
SendClientMessage(playerid, COLOR_WHITE, message);
return 0;
and i want to share this line [%i has muted by server admin %i for %i sec] how to do this
Reply
#2

i am assuming you don't want this to be output every time he tries to write, do you?

If you do, just add a "SendClientMessageToAll" , you need the variables somehow tho.

If you want to do it on your mute command, you should have all the variables anyways, jsut build the string and send it to all players.
Reply
#3

hehehe how to build the string can u send me a build string
Reply
#4

With all the resources you gave I could make this:

PHP код:
if (playerData[playerid][playerMuteTime] != 0)
{
   new 
message[128], message2[128], pName[MAX_PLAYER_NAME], tName[MAX_PLAYER_NAME];
   
GetPlayerName(playeridpNamesizeof(pName));
   
GetPlayerName(playeridtNamesizeof(tName));
   
format(messagesizeof(message), "{FFDC2E}[MUTED] {#ff69b4}You are muted for another {FFDC2E}%i{FFFFFF}seconds and cannot talk!"playerData[playerid][playerMuteTime]);
   
SendClientMessage(playeridCOLOR_WHITEmessage);
   
format(message2sizeof(message2), "%s is muted by %s for %i seconds!"tNamepNameplayerData[playerid][playerMuteTime]);
   
SendClientMessageToAll(-1message2); 
   return 
0;

Reply
#5

thnx man rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)