makepremium command?
#1

Код:
COMMAND:makepremium(playerid, params[])
{
	if(IsPlayerAdmin(playerid))
	{
	if(IsPlayerConnected(playerid))
	{
	new playerfile[128], pname[MAX_PLAYER_NAME];
		GetPlayerName(playerid, pname, sizeof(pname));
		format(playerfile, sizeof(playerfile), "Premium/Users/%s.ini",pname);
	 	if(dini_Exists(playerfile)) return dini_IntSet(playerfile, "Level", 1);
	} else SendClientMessage(playerid, red, "Error: You must be an Admin to use that command.");
	
 }
return 1;
}
As i have noticed This code will make YOU premium if YOU are an admin.. how to convert it to work with all admins to make a NORMAL PLAYER a premium user? Will we be nice also if a "ADMIN %s has just made you PREMIUM!"

someone could help?
Reply


Messages In This Thread
makepremium command? - by VanillaRain - 05.08.2015, 16:50
Re: makepremium command? - by SpikeSpigel - 05.08.2015, 17:10
Re: makepremium command? - by HazardouS - 05.08.2015, 17:12
Re: makepremium command? - by VanillaRain - 05.08.2015, 17:13
Re: makepremium command? - by VanillaRain - 05.08.2015, 17:18
Re: makepremium command? - by HazardouS - 05.08.2015, 17:25
Re: makepremium command? - by VanillaRain - 05.08.2015, 17:27
Re: makepremium command? - by HazardouS - 05.08.2015, 17:31
Re: makepremium command? - by VanillaRain - 05.08.2015, 17:35
Re: makepremium command? - by HazardouS - 05.08.2015, 17:37

Forum Jump:


Users browsing this thread: 2 Guest(s)