need help
#1

hey guys i want to replace Admin %s give you leader Faction 1 to Admin %s give you leader LSPD example or Ballas GSF
and You give %s leader Faction 1 to you give %s leader LSPD or ballas or gsf
here code
Код:
CMD:makeleader(playerid,params[])
{
	new string[128], igrac, giveplayerid, giveplayer[MAX_PLAYER_NAME], level, sendername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, sendername, sizeof(sendername));
    if(IsPlayerAdmin(playerid))
	{
		if(!sscanf(params, "ui", giveplayerid, level))
		{
		    PlayerInfo[igrac][pRank] = 6;
		    PlayerInfo[igrac][pMember] = 0;
			GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1,"Pogresan igracev id");
			PlayerInfo[giveplayerid][pLeader] = level;
			format(string, sizeof(string), "Dao si igracu %s lidera organizacije %i", giveplayer, level);
			SendClientMessage(playerid, -1, string);
			format(string, sizeof(string), "Admin %s ti je dao lidera organizacije %i", sendername, level);
			SendClientMessage(giveplayerid, -1, string);
			if(level == 0) { PlayerInfo[giveplayerid][pSkin] = 0; PlayerInfo[giveplayerid][pRank] = 0; return 1; }
			else if(level == 1) { PlayerInfo[giveplayerid][pSkin] = 288; } //Policija
			SetPlayerSkin(giveplayerid,PlayerInfo[giveplayerid][pSkin]);
		}
		else SendClientMessage(playerid, -1,"Koristenje /makeleader [IDigraca/Dio imena] [broj(1-2)]");
	}
	else SendClientMessage(playerid, -1,"Niste ovlasteni da koristite ovu komandu");
	return 1;
}
its on my languange but replace it to english
Reply


Messages In This Thread
need help - by Dejan12345 - 16.08.2016, 16:06
Re: need help - by Dejan12345 - 16.08.2016, 17:35
Re: need help - by F1N4L - 16.08.2016, 17:45
Re: need help - by Dejan12345 - 17.08.2016, 08:31
Re: need help - by Dejan12345 - 17.08.2016, 08:34

Forum Jump:


Users browsing this thread: 1 Guest(s)