/offuninvite command - 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: /offuninvite command (
/showthread.php?tid=588493)
/offuninvite command -
Jimmi - 09.09.2015
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;
}
Re: /offuninvite command -
Jimmi - 09.09.2015
uppppp
Re: /offuninvite command -
Jimmi - 09.09.2015
upppppp
Re: /offuninvite command -
Jimmi - 09.09.2015
uppp
Re: /offuninvite command -
Gazzy - 09.09.2015
Stop spamming your own thread and wait for an answer. Also, you'd be better posting this in the Languages section of the forum