Problema cu o comanda
#2

Код:
CMD:fackick(playerid,params[])
{
	if(pInfo[playerid][AdminLevel] >= 3 || pInfo[playerid][pFacLeader] == 1)
	{
	    new targetid;
	    new string[144];
	    new sext[20];
	    
	    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "/fackick [id]");
	    if(targetid != INVALID_PLAYER_ID)
	    {
	        if(pInfo[targetid][pFacID] == 1) { sext = "Police Departament"; }
                        new PlayerName[MAX_PLAYER_NAME];
                        GetPlayerName(targetid, PlayerName, MAX_PLAYER_NAME);
			pInfo[targetid][pFacID] = 0;
			pInfo[targetid][pFacPRank] = 0;
			format(string,sizeof(string),"Nick, %s (ID:%d) fost dat afara din factiunea %s",PlayerName,targetid,sext);
			SendClientMessage(playerid,0xFFFFFFAA,string);
                        SendClientMessage(targetid,0xFFFFFFAA,string);

	    }
	}
	else
	{
	    SendClientMessage(playerid, COLOR_RED, "Only certain levels of Administration have access to this command.");
	}
	return 1;
}
Reply


Messages In This Thread
Problema cu o comanda - by xAlecsu - 08.08.2017, 20:21
Re: Problema cu o comanda - by DimaShift - 09.08.2017, 14:32
Re: Problema cu o comanda - by xAlecsu - 09.08.2017, 19:01

Forum Jump:


Users browsing this thread: 1 Guest(s)