CMD problem
#1

Hello, I have some small problems ... if you can help me o.0

I want to appear the name of the faction, not faction id ..
I tried something but it did not work
I use YSI for save account
And sorry for my bad english...
Код:
CMD:fackick(playerid,params[])
{
	if(pInfo[playerid][AdminLevel] >= 3 || pInfo[playerid][pFacLeader] == 1)
	{
	    new targetid;
	    new string[128];
	    new sext[64];
	    
	    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"; }
			pInfo[targetid][pFacID] = 0;
			pInfo[targetid][pFacPRank] = 0;
			format(string,sizeof(string),"Ai fost dat afara din factiunea %s",pInfo[playerid][pFacID]);
			SendClientMessage(playerid,0xFFFFFFAA,string);
	    }
	}
	else
	{
	    SendClientMessage(playerid, COLOR_RED, "Only certain levels of Administration have access to this command.");
	}
	return 1;
}
Reply


Messages In This Thread
CMD problem - by xAlecsu - 08.08.2017, 20:46
Re: CMD problem - by iLearner - 08.08.2017, 20:51
Re: CMD problem - by xAlecsu - 08.08.2017, 20:54
Re: CMD problem - by iLearner - 08.08.2017, 20:56
Re: CMD problem - by xAlecsu - 08.08.2017, 20:57
Re: CMD problem - by Swarn - 08.08.2017, 21:37
Re: CMD problem - by xAlecsu - 08.08.2017, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)