SA-MP Forums Archive
not giving player weapons - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: not giving player weapons (/showthread.php?tid=102275)



not giving player weapons - [mad]MLK - 14.10.2009

hey well this is my code, its in OnPlayerSpawn it works except it doesn't give the player the weapon?

Код:
 	if(DMZone[playerid] == 2) {
	SendClientMessage(playerid, 0x00FF00AA, "Fight each other to the death!, To leave DM Type /leavedm");
	SendClientMessageToAll(agreen, string);
	SetPlayerPos(playerid,199.3792,173.4266,1003.0234);
	SetPlayerInterior(playerid, 3);
	GivePlayerWeapon(playerid, 9, 10);
	return 1;
	}
it doesn't give the player the weapon but everything else works?


Re: not giving player weapons - dice7 - 14.10.2009

Do you ResetPlayerWeapons anywhere ?


Re: not giving player weapons - [mad]MLK - 14.10.2009

OH YES!, briliant thanks if forgot when they spawn its in a safe zone that disables weapons! thanks dude saved me many hours debugging.