SA-MP Forums Archive
Level up for all - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Level up for all (/showthread.php?tid=441198)



Level up for all - superaconi - 01.06.2013

Can somebody give me command for to give all players level up?


Re: Level up for all - Brandon_More - 01.06.2013

Код:
COMMAND:setlvlall(playerid, params[])
{
	if(PlayerInfo[playerid][admin variable] < 11) return SendClientError(playerid, CANT_USE_CMD);
	if(IsPlayerConnected(i))
        for(new i=0;i<MAX_PLAYERS;i++)
	new iTier;
        SetPlayerScore(i,iTier);
	PlayerInfo[i][playerlvl]=iTier;
	format(messaggio,sizeof(messaggio),"&s Has set everyone's PlayerLevel to %s",PlayerName(playerid),iTier);
	SendMessageToAll(COLOR_RED,messaggio);
	return 1;
}
Enter your own variables