21.12.2014, 09:14
hello guys..
i have a problem, why my gamemode can't save account ??
please help me..
Thank you
i have a problem, why my gamemode can't save account ??
please help me..
Thank you
CMD:kick(playerid, params[])
{
if(PlayerInfo[playerid][Admin] < 1) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You do not have permission to access this cmd.");
new PID;
new reason[64];
new str[256];
if(sscanf(params, "us[64]", PID,reason)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: Syntax: /kick [playerid] [reason]");
if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: Player is not connected.");
if(playerid == PID) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't kick yourself.");
format(str, sizeof(str), "[NOTICE]: '%s' has been kicked by administrator '%s'. Reason: %s ", GetName(PID), GetName(playerid), reason);
SendClientMessageToAll(COLOR_RED, str);
Kick(PID);
return 1;
}