Need Help with GivePlayerWeapon
#1

Код:
public OnPlayerSpawn(playerid)
{
	GivePlayerWeapon(playerid, 348, 1500);
	GivePlayerWeapon(playerid, 351, 1500);
	GivePlayerWeapon(playerid, 353, 1500);
	GivePlayerWeapon(playerid, 355, 1500);
	GivePlayerWeapon(playerid, 358, 1500);
	GivePlayerWeapon(playerid, 331, 1);
	printf("Player ID %d has spawned!",playerid);
	return 1;
}
When the player spawns, he doesnt get these weapons!! Why?? Its seriously annoying me!

One more thing:

Код:
forward KillingSpree3(playerid);
forward KillingSpree10(playerid);

public KillingSpree3(playerid)
{
	if(GetPlayerScore(playerid) >= 3)
	{
 		new PlayerName[MAX_PLAYER_NAME],
		string[128];
		GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
		format(string, sizeof(string), "[Spree] %s is now on a killing spree!", PlayerName);
		SendClientMessageToAll(COLOR_GREEN, string);
	}
}

public KillingSpree10(playerid)
{
	if(GetPlayerScore(playerid) >= 10)
	{
 		new PlayerName[MAX_PLAYER_NAME],
		string[128];
		GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
		format(string, sizeof(string), "[Spree] %s has been awarded a Minigun! Stop him before he damages the whole place!", PlayerName);
		SendClientMessageToAll(COLOR_GREEN, string);
		GivePlayerWeapon(playerid, 362, 3000);
	}
}
All this does is send the player a message saying your on a killing spree for every kill they get! And it only send the message to the player when it should send it to all!!

Plz help me!! The script compiles with no errors, but like i mentioned, it doesnt do what its meant to... Plz tell me if u have a better way to put all this...

Greetz
Reply


Messages In This Thread
Need Help with GivePlayerWeapon - by Tigerbeast11 - 11.10.2009, 09:01
Re: Need Help with GivePlayerWeapon - by Abernethy - 11.10.2009, 09:05
Re: Need Help with GivePlayerWeapon - by boelie - 11.10.2009, 09:07
Re: Need Help with GivePlayerWeapon - by Tigerbeast11 - 11.10.2009, 09:09
Re: Need Help with GivePlayerWeapon - by usa.vs.iraq - 11.10.2009, 09:09
Re: Need Help with GivePlayerWeapon - by usa.vs.iraq - 11.10.2009, 09:10
Re: Need Help with GivePlayerWeapon - by Abernethy - 11.10.2009, 09:11
Re: Need Help with GivePlayerWeapon - by Tigerbeast11 - 11.10.2009, 09:13
Re: Need Help with GivePlayerWeapon - by Abernethy - 11.10.2009, 09:20
Re: Need Help with GivePlayerWeapon - by Tigerbeast11 - 11.10.2009, 09:29

Forum Jump:


Users browsing this thread: 1 Guest(s)