Help in scripting..
#5

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
Just use ResetPlayerWeapons first and then GivePlayerWeapon to disarm all other weapons when a player types /sniperdm or /minigundm.
What I meant was this:
PHP код:
CMD:minigundm(playeridparams[])
{
    
ResetPlayerWeapons(playerid);
    
GivePlayerWeapons(playeridWEAPON_MINIGUNammo);
    
//remaining code
}
and
CMD:sniperdm(playeridparams[])
{
    
ResetPlayerWeapons(playerid);
    
GivePlayerWeapons(playeridWEAPON_SNIPERammo);
    
//remaining code

This will reset all weapons when a player joins a dm.
Reply


Messages In This Thread
Help in scripting.. - by fuckingcruse - 12.03.2015, 13:49
Re: Help in scripting.. - by ATGOggy - 12.03.2015, 13:55
Re: Help in scripting.. - by CalvinC - 12.03.2015, 14:00
Re: Help in scripting.. - by fuckingcruse - 12.03.2015, 14:06
Re: Help in scripting.. - by ATGOggy - 12.03.2015, 14:09
Re: Help in scripting.. - by CalvinC - 12.03.2015, 14:15
Re: Help in scripting.. - by fuckingcruse - 12.03.2015, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)