Jump to content

Comanda /kickall


Softical

Recommended Posts

CMD:kickall(playerid, params[]) {
	if(gPlayerLogged[playerid] ==0)
		return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
	if(PlayerInfo[playerid][pAdmin] < 6)
		return SendClientMessage(playerid, COLOR_LIGHTRED, AdminOnly);

	new reasonE[24], kickString[105], senderName[24];
	if(sscanf(params, "s[24]", reasonE))
		return SendClientMessage(playerid, COLOR_GREY, "Syntax: {FFFFFF}/kickall [reason]");

	GetPlayerName(playerid, senderName, sizeof(senderName));
	format(kickString, sizeof(kickString), "Admin %s a dat kick tuturor jucatorilor, motiv: %s.", senderName, reasonE);
	SendClientMessageToAll(COLOR_LIGHTRED, kickString);

	foreach(Player, i) {
		if(i != playerid) KickEx(i);
	}
	return 1;
}

Salut, ți-am rescris comanda și sper să îți fie de folos și să te ajute.

  • Thanks 1
Link to comment
Share on other sites

Acum 1 oră, matei_ a spus:
CMD:kickall(playerid, params[]) {
	if(gPlayerLogged[playerid] ==0)
		return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
	if(PlayerInfo[playerid][pAdmin] < 6)
		return SendClientMessage(playerid, COLOR_LIGHTRED, AdminOnly);

	new reasonE[24], kickString[105], senderName[24];
	if(sscanf(params, "s[24]", reasonE))
		return SendClientMessage(playerid, COLOR_GREY, "Syntax: {FFFFFF}/kickall [reason]");

	GetPlayerName(playerid, senderName, sizeof(senderName));
	format(kickString, sizeof(kickString), "Admin %s a dat kick tuturor jucatorilor, motiv: %s.", senderName, reasonE);
	SendClientMessageToAll(COLOR_LIGHTRED, kickString);

	foreach(Player, i) {
		if(i != playerid) KickEx(i);
	}
	return 1;
}

Salut, ți-am rescris comanda și sper să îți fie de folos și să te ajute.

Mersi! T/C

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.