not giving player weapons
#1

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?
Reply
#2

Do you ResetPlayerWeapons anywhere ?
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)