01.09.2015, 20:42
The problem is, the cmd doesn't kick the member. It does send the player a message with "You have been kicked from the organization by the (Co)-Leader" but it doesn't really kick the player... What's wrong about it?
PHP код:
CMD:kickmember(playerid, params[])
{
if(PlayerInfo[playerid][LeaderGSF] >= 1)
{
new targetplayer;
if(sscanf(params, "i", targetplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /kickmember [ID]");
PlayerInfo[targetplayer][MemberGSF] = 0;
SendClientMessage(targetplayer, COLOR_RED, "You have been kicked from the organization by the (Co)-Leader");
SendClientMessage(playerid, COLOR_RED, "You kicked the specified member from your Organization");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Error: You aren't the (Co)-Leader of any organization!");
}
return 1;
}