Home/kill command can be fix WZYcG7eLatest imagesSearchRegisterLog in/kill command can be fix GzSzGlU/kill command can be fix T9ywruy/kill command can be fix MrZV306/kill command can be fix KNjj8mV

Share
 

 /kill command can be fix

View previous topic View next topic Go down 
AuthorMessage
Game_Changer
Game_Changer


Posts : 9

Join date : 2017-05-01

Age : 24

Location : Pakistan


/kill command can be fix Empty
PostSubject: /kill command can be fix   /kill command can be fix EmptyMon 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
Sergeant_Pistolero
Sergeant_Pistolero


Posts : 171

Join date : 2015-07-02

Age : 33

Location : Russian Federation


/kill command can be fix Empty
PostSubject: Re: /kill command can be fix   /kill command can be fix EmptyMon 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
https://www.youtube.com/channel/UC592id9Vx85oDuvY9FocnFg

Prathamesh.
Server Administrator
Server Administrator

Posts : 456

Join date : 2015-08-16


/kill command can be fix Empty
PostSubject: Re: /kill command can be fix   /kill command can be fix EmptyMon 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 : 144

Join date : 2016-12-01

Age : 22

Location : Italy


/kill command can be fix Empty
PostSubject: Re: /kill command can be fix   /kill command can be fix EmptyMon 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



/kill command can be fix Empty
PostSubject: Re: /kill command can be fix   /kill command can be fix Empty

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

-
» New command suggestion.
» Command bugs
» Spawm kill
»  Adding a command for admins
» Admin level 1-2 Command for weapon IDs

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