SA-MP Forums Archive
Dialoge - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialoge (/showthread.php?tid=503223)



Dialoge - UfsDev - 28.03.2014

Kick Dialoge + Banned Dialoge

When i Banned Someone he didnt get Banned + Kick Dialoge On My Screen BanneD + Kick Dialoge Appear Why Any Solution..? i banned + kick him on his screen dialoge should appeaer


Re: Dialoge - Robis13 - 28.03.2014

details? maybe


Re: Dialoge - Salman1700 - 28.03.2014

Код:
CMD:ban(playerid, params[])
{
	if(PlayerInfo[playerid][AdminLevel] >= 6)
	{
	    new targetid, tname[MAX_PLAYER_NAME], reason[128];
		new name[MAX_PLAYER_NAME], string[128];
		if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /ban [playerid] [reason]");
		if(targetid != INVALID_PLAYER_ID)
		{
			GetPlayerName(playerid, name, sizeof(name));
			GetPlayerName(targetid, tname, sizeof(tname));
		    format(string, sizeof(string), "ADMIN-BAN: %s, (Reason: %s)", tname, reason);
		    SendClientMessageToAll(BANNEDMESSAGE, string);
		    SaveIn("BanLog",string);
		    Ban(targetid);
		    SendCommandToAdmins(playerid,"/ban");
		}
		else return SendClientMessage(playerid, COLOR_RED, "ERROR: invalid playerid");
	}
works rep me