HomeCalendarFAQSearchRegisterLog in

Share | 
 

 /kill command can be fix

View previous topic View next topic Go down 
AuthorMessage
avatar
Game_Changer


Posts : 9

Join date : 2017-05-01

Age : 17

Location : Pakistan


PostSubject: /kill command can be fix   Mon May 01, 2017 9:58 am

Players using /kill command when their health reach almost 5% while fight!
I have a solution! Please find cmd:kill in gamemod and add this line after CMD:kill(playerid) {

if(IsPlayerNearEnemies(playerid)) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: You can't use this command near enemies.");

For Example:

CMD:kill(playerid)
{
if(IsPlayerNearEnemies(playerid)) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: You can't use this command near enemies.");

if(IsPlayerInAnyVehicle(playerid))
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2] + 2.2);//eject the player!
}
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, COLOR_SEA_GREEN, "* You are now dead!");
NotifyPlayer(playerid, "You commited sucide!", 5000);
return 1;
}
Back to top Go down
avatar
Sergeant_Pistolero


Posts : 169

Join date : 2015-07-02

Age : 27

Location : Russian Federation


PostSubject: Re: /kill command can be fix   Mon May 01, 2017 1:14 pm

It's a good offer and resolve problem, but it need publication on theme "Suggestions".
Can add that the limit for /kill need not 5%, but 20%
Back to top Go down
http://www.youtube.com/channel/UC592id9Vx85oDuvY9FocnFg

Prathamesh.
Server Administrator
Server Administrator

Posts : 433

Join date : 2015-08-16


PostSubject: Re: /kill command can be fix   Mon May 01, 2017 2:48 pm

True , +1 From me nice one
i Hope Irish add it Smile
Back to top Go down

Rush


Posts : 143

Join date : 2016-12-01

Age : 16

Location : Italy


PostSubject: Re: /kill command can be fix   Mon May 01, 2017 6:49 pm

This "solution" is copied from another gm. Anyway, it's a good idea.
| https://pastebin.com/raw/cUeBBMef |
Back to top Go down
http://www.mg-official.com

Sponsored content



PostSubject: Re: /kill command can be fix   

Back to top Go down
 

/kill command can be fix

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» What drives a parent to kill?
» Black woman threatens to kill all whites in astonishing outburst
» gerry asked did he kill maddie watch this video without sound
» “We are most like beasts when we kill. We are most like men when we judge. We are most like God when we forgive.”
» Parents killed baby with methodone - and they get bail!

Permissions in this forum:You cannot reply to topics in this forum
MaximumGaming :: San Andreas Multiplayer ( SA:MP ) :: Suggestions-