Function not working?
#1

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:

Код:
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;
}
Thanks for help.
Reply


Messages In This Thread
Function not working? - by Face9000 - 10.12.2010, 14:19
Re: Function not working? - by Face9000 - 10.12.2010, 18:50
Re: Function not working? - by Face9000 - 11.12.2010, 12:17
Re: Function not working? - by [HUN]Jaki - 11.12.2010, 16:20
Re: Function not working? - by Face9000 - 11.12.2010, 18:25
Re: Function not working? - by WillyP - 11.12.2010, 18:27
Re: Function not working? - by Face9000 - 11.12.2010, 18:29
Re: Function not working? - by WillyP - 11.12.2010, 18:49
Re: Function not working? - by Face9000 - 11.12.2010, 20:46

Forum Jump:


Users browsing this thread: 2 Guest(s)