Confused again :|
#1

Okay, so when a player types /dm, how can I
reset all of the players weapon and give him
a new weapon
Reply
#2

Put
pawn Код:
ResetPlayerWeapons(playerid);
BEFORE:
pawn Код:
GivePlayerWeapon(playerid, weaponid);
Should look like this:
pawn Код:
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, weaponid);
So first it removes player's weapons, then it gives a new one.
Reply
#3

Quote:
Originally Posted by PlayON
Put
pawn Код:
ResetPlayerWeapons(playerid);
BEFORE:
pawn Код:
GivePlayerWeapon(playerid, weaponid);
Should look like this:
pawn Код:
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, weaponid);
So first it removes player's weapons, then it gives a new one.
Thanks I was just thinking about that, but
I thought it wouldn't give the player any gun
because it will just reset the players weapon
when he goes in dm. So, thanks
Reply
#4

Код:
	if(!strcmp("/command", cmdtext, true))
	{
	    SetPlayerPos(...);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(...);
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)