10.12.2010, 14:19 
	
	
	
		Hi all,i'm making a "Crazy hour script" and i need little help.
I make this:
If server reach 70 players,the script wil activate the functions i write (ex. free health,new skin,weapons and etc.)
I tried on my local server,by lowering the player count to test the script,but dont work.
Ex: I tried:
Free armor.
Free sawnoff. Just for test,and nothing,both of this don't work.
Here is the script:
The new:
new pCount;
and the rest:
Thanks for help.
	
	
	
	
I make this:
If server reach 70 players,the script wil activate the functions i write (ex. free health,new skin,weapons and etc.)
I tried on my local server,by lowering the player count to test the script,but dont work.
Ex: I tried:
Free armor.
Free sawnoff. Just for test,and nothing,both of this don't work.
Here is the script:
The new:
new pCount;
and the rest:
Код:
public OnPlayerConnect(playerid)
{
     	pCount++;
        return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    pCount--;
	return 1;
}
forward pChecking();
public pChecking()
{
	if(pCount >= 2)
	{
	   SendClientMessageToAll(RED, "Crazy Hour script activated.");
           GivePlayerWeapon(playerid, 26, 500);
           SetPlayerArmour(playerid, 100);
	   print("3 Players Joined!");
	}
	return 1;
}





