25.03.2018, 16:12
I Used the 2nd and a little edit and my stock is:
(Ignore the bugged text)
Now the problem is that when i type to mute other player it says <MYNAME> is muted by <MYNAME>
Where is the problem?? I don't know please help!
Код:
stock MutePlayer(playerid, iGivedBy, iTime, szReason[]) { if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Този играч не е в сървъра!"); UTS_MuteTime[playerid] = gettime() + 60 * iTime; format(szReasonMute[playerid], 32, szReason); new szName[MAX_PLAYER_NAME], szString[168]; new targetid; new TargetName[MAX_PLAYER_NAME]; GetPlayerName(targetid, TargetName, sizeof(TargetName)); GetPlayerName(iGivedBy, szName, MAX_PLAYER_NAME); format(szString, sizeof(szString), "{FF1E00}%s е заглушен от администратор %s за %d минута/и. [Причина: %s]", TargetName, szName, iTime, szReason); SendClientMessageToAll(-1, szString); return 1; }
Now the problem is that when i type to mute other player it says <MYNAME> is muted by <MYNAME>
Where is the problem?? I don't know please help!