SendDeathMessage ? Fast please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendDeathMessage ? Fast please (
/showthread.php?tid=582614)
SendDeathMessage ? Fast please -
Toxik - 22.07.2015
Hey guys im working on a DM gamemode
i would like when a player ram player show up the :
Driver Name: [RAM ICON] Ramed player
_____________________________________
NOTE: I searched around but cant find what i search
Re: SendDeathMessage ? Fast please -
SickAttack - 22.07.2015
Use the death reason parameter given by OnPlayerDeath(...), having a simple system that handles the death list, already comes with it. Have a look at the wiki, this is something super, super simple and there is no need for anyone to provide code when you can do this in a breeze.
Re: SendDeathMessage ? Fast please -
gurmani11 - 22.07.2015
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerWeapon(killerid) == WEAPON_VEHICLE) SendDeathMessage(killerid, playerid, WEAPON_VEHICLE); //vehicle Ram icon when rammed
return 1;
}
it should work
Re: SendDeathMessage ? Fast please -
Stereotype - 22.07.2015
You could use OnPlayerGiveDamage or OnPlayerTakeDamage, but it can't be detected for your vehicle, only if it's done by vehicle to ped...
Re: SendDeathMessage ? Fast please -
JaydenJason - 22.07.2015
https://sampforum.blast.hk/showthread.php?tid=490436
Using Emmet's include and the callback "OnPlayerRamPlayer
Код:
public OnPlayerRamPlayer(playerid, driverid, vehicleid, Float:damage)
{
if(damage > 10) SendDeathMessage(driverid, playerid, 49); // damage can be adjusted
return 1;
}
Re: SendDeathMessage ? Fast please -
Toxik - 22.07.2015
Quote:
Originally Posted by JaydenJason
https://sampforum.blast.hk/showthread.php?tid=490436
Using Emmet's include and the callback "OnPlayerRamPlayer
Код:
public OnPlayerRamPlayer(playerid, driverid, vehicleid, Float:damage)
{
if(damage > 10) SendDeathMessage(driverid, playerid, 49); // damage can be adjusted
return 1;
}
|
What is the originaly Car damage ?
i think each car got each damage
example: BMX or a Line runer who runs 100 mph :/
im confused with that codes