Score Help.
#1

Hey. I think I know how to do this but I do not want to put it in my script, then on my server and piss everyone off.

How do I make it so my players have to have a score or higher to Spawn as a certain team?

Example Script
Код:
	if(team[playerid] == 1)
	{
		SetPlayerColor(playerid,CYAN);
		SetPlayerTeam(playerid, 1);
		GivePlayerWeapon(playerid,24,300);
		GivePlayerWeapon(playerid,25,300);
		GivePlayerWeapon(playerid,31,300);
		GivePlayerMoney(playerid, 20000);
		SetPlayerHealth(playerid, 30);
	}
I just need a simple IF statement to see if the have the required score.
Reply
#2

if(GetPlayerScore(playerid) < 10) return false; ?
Reply
#3

Well. have a registration system save their score.

then on spawn check their player info for their score. if its correct they can spawn.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)