Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Synx on May 06, 2011, 07:57:15 pm

Title: Player Drop
Post by: Synx on May 06, 2011, 07:57:15 pm
Hello,
Is it Imposible to create Players dont drop weapons?
*If its possible say how to create, when players dont drop weapons.

Thanks,
Synx
Title: Re: Player Drop
Post by: Maxwell on May 06, 2011, 08:35:40 pm
Try this
Quote
Quote
Quote
OnPlayerDeath(killer,player,reason)
{
SetPlayerWeapon(0,0);
}
NOTE:: UNTESTED
Title: Re: Player Drop
Post by: Pawno on May 07, 2011, 10:50:19 pm
Try,

[pawn]public OnPlayerDeath(playerid, killerid, reason, bodypart)
{
ResetPlayerWeapons(playerid);
return 1;
}[/pawn]

  :)
Title: Re: Player Drop
Post by: Synx on May 08, 2011, 08:00:42 pm
Doesn't work.
I think somethink like this:
[pawn]new timer;

public OnPlayerSpawn(playerid,classid,teamid)
{
   timer = SetTimer("OnPlayerDrop",10,1);
   return 1;
}

forward OnPlayerDrop(playerid);

public OnPlayerDrop(playerid)
{
   new Float:hp; GetPlayerHealth(playerid,hp);
   if(hp < 1)
   {
   ResetPlayerWeapons(playerid);
   }
return 1;
}

public OnPlayerDeath(playerid, killerid, reason, bodypart)
{
KillTimer(timer);
return 1;
}
[/pawn]

but it's bugs when I choose player.
Title: Re: Player Drop
Post by: shivambansal on May 08, 2011, 08:38:26 pm
you mean /c disarm?
Title: Re: Player Drop
Post by: Synx on May 09, 2011, 05:50:32 pm
you mean /c disarm?

No... I mean i want system when player dies no weapons shows on ground.
Title: Re: Player Drop
Post by: shivambansal on May 09, 2011, 07:41:20 pm
you mean /c disarm?

No... I mean i want system when player dies no weapons shows on ground.
:o it is possible?
Title: Re: Player Drop
Post by: Synx on May 10, 2011, 01:55:05 pm

 :o it is possible?
[/quote]

what do you mean?
Title: Re: Player Drop
Post by: Maxwell on May 10, 2011, 10:49:27 pm
Woooooooooooooooooooooooooot WORKS but BUGGED when i got under 10 hp i got reseted weps :( FIST FIGHT XDDD
Title: Re: Player Drop
Post by: Synx on May 11, 2011, 01:54:44 pm
Then is it possible ?
Title: Re: Player Drop
Post by: aXXo on May 11, 2011, 04:58:20 pm
Even if you reset a player's weapons, he will still drop it.

You might have noticed that when you run out of ammo of a wep, then after death you still drop it.
I dont think it is possible to script...  :(
Title: Re: Player Drop
Post by: Maxwell on May 12, 2011, 10:43:20 am
onPickedUp(plr , id)
{
resetplayerweapons(plr)
SetplayerWep m4 spaz
}


xDDD ???
Title: Re: Player Drop
Post by: stormeus on May 12, 2011, 08:59:08 pm
onPickedUp(plr , id)
{
resetplayerweapons(plr)
SetplayerWep m4 spaz
}


xDDD ???

Title: Re: Player Drop
Post by: NIPNIC on May 16, 2011, 05:39:39 am
onPickedUp(plr , id)
{
resetplayerweapons(plr)
SetplayerWep m4 spaz
}


xDDD ???

Wth, Totally wrong.  ???