Posts: 899
Threads: 54
Joined: May 2009
Reputation:
0
How do I set somebody elses health, SetPlayerHealth(playerid, giverid, 100); ? Meh, I have no idea.
Instead of making a new thread, it's simpler to edit.
Posts: 899
Threads: 54
Joined: May 2009
Reputation:
0
The menu displays what they want to be, eg. Russia gets a menu for like, Infantry, Medic etc ... I also have other shit how would I do more than a single line?
EDIT: Works, thanks mate.
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
Add more things to the menu? or what?
Please explain more.
Posts: 899
Threads: 54
Joined: May 2009
Reputation:
0
Doesn't help, sorry to say. I know how to set your own health, my script includes Medics that SHOULD be able to /heal [playerid] .. thats the question I'm asking.
Posts: 155
Threads: 52
Joined: Apr 2009
Reputation:
0
well if you don't have medic script on your server do like this:
new cmd[256], tmp[256], idx;
if(strcmp(cmd, "/heal", true) == 0)
{
tmp = strtok(cmdtext, idx);
new otherplayer = strval(tmp);
if (!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Player isn't connected.");
if (otherplayer == playerid) return SendClientMessage(playerid, COLOR_WHITE, "You can't heal your self");
SetPlayerHealth(otherplayer, 100);
SendClientMessage(playerid, COLOR_WHITE, "You have filled the health");
return 1;
}