Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started 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
-
Try this
OnPlayerDeath(killer,player,reason)
{
SetPlayerWeapon(0,0);
}
NOTE:: UNTESTED
-
Try,
[pawn]public OnPlayerDeath(playerid, killerid, reason, bodypart)
{
ResetPlayerWeapons(playerid);
return 1;
}[/pawn]
:)
-
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.
-
you mean /c disarm?
-
you mean /c disarm?
No... I mean i want system when player dies no weapons shows on ground.
-
you mean /c disarm?
No... I mean i want system when player dies no weapons shows on ground.
:o it is possible?
-
:o it is possible?
[/quote]
what do you mean?
-
Woooooooooooooooooooooooooot WORKS but BUGGED when i got under 10 hp i got reseted weps :( FIST FIGHT XDDD
-
Then is it possible ?
-
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... :(
-
onPickedUp(plr , id)
{
resetplayerweapons(plr)
SetplayerWep m4 spaz
}
xDDD ???
-
onPickedUp(plr , id)
{
resetplayerweapons(plr)
SetplayerWep m4 spaz
}
xDDD ???
- Would reset the player's weapons whenever they went to ANY pickup
- Invalid syntax for SetPlayerWep
- Weapon pickups don't work with OnPickedUp, as far as I know
-
onPickedUp(plr , id)
{
resetplayerweapons(plr)
SetplayerWep m4 spaz
}
xDDD ???
Wth, Totally wrong. ???