/offuninvite command
#1

Can someone pass the command on the r39-3
Код:
//========================================[CMD:OFFUNINVITE]====================================================
CMD:offuninvite(playerid,params[])
{
	new result, string[128], target;
	{
	if(sscanf(params, "u", target)) return SendClientMessage(playerid, -1, "Folosire:{FFFFFF} /offuninvite [NUMELE-EXACT]");
	if(PlayerInfo[playerid][pLeader] == 0)
	return 1;
	}
	format(string, sizeof(string), "SELECT `username` FROM `players` WHERE username = '%s' AND Member > 0 LIMIT 1", (result));
	mysql_query(string);
	mysql_store_result();
	if(!mysql_num_rows())
	{
		format(string, sizeof(string), "Nu este nimeni cu numele %s inregistrat/cu factiune!", (result));
		mysql_free_result();
		return SendClientMessage(playerid, 0xEF5C5CFF, string);
	}
	else if(mysql_num_rows() != 0)
	{
		format(string, sizeof(string), "UPDATE `players` SET `Member` = 0 WHERE username = '%s' SET `Skin` = 170 WHERE username = '%s'", (result));
		mysql_query(string);
		mysql_store_result();
		format(string, sizeof(string), "{0066FF}[Info:] {FFFFFF}%s nu mai este in factiune!", (result));
		ABroadCast(0xa9c4e4FF, string, 1);
		mysql_free_result();
	}
	else return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Info: {FFFFFF}Nu exista niciun jucator cu acel nume! Scrie numele exact!");
	return 1;
}
Reply
#2

uppppp
Reply
#3

upppppp
Reply
#4

uppp
Reply
#5

Stop spamming your own thread and wait for an answer. Also, you'd be better posting this in the Languages section of the forum
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)