admin help
#2

Quote:
Originally Posted by sggassasin
could someone help me coz i need a /makeadmin command and a / heal command


so evan if you do one i dont care i just need some help
Which adminmod do you run?
Here is the command without Adminmod (Just add If's.)

Код:
	if(strcmp(cmd, "/heal", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /heal [playerid/PartOfName]");
				return 1;
			}
			new playa;
			playa = ReturnUser(tmp);
			  if(IsPlayerConnected(playa))
			  {
			    if(playa != INVALID_PLAYER_ID)
			    {
			    
 						SetPlayerHealth(playa,100.0);
						format(string, sizeof(string), "You have been healed to 100 health.");
						SendClientMessage(playa, TEAM_GREEN_COLOR,string);
			    
				}
			}
		}
		return 1;
	}
Reply


Messages In This Thread
admin help - by sggassasin - 31.08.2009, 07:30
Re: admin help - by Nakash - 31.08.2009, 07:41
Re: admin help - by MenaceX^ - 31.08.2009, 08:07
Re: admin help - by sggassasin - 31.08.2009, 08:13
Re: admin help - by MenaceX^ - 31.08.2009, 08:18
Re: admin help - by sggassasin - 31.08.2009, 08:21
Re: admin help - by MenaceX^ - 31.08.2009, 08:26
Re: admin help - by sggassasin - 31.08.2009, 08:28
Re: admin help - by dice7 - 31.08.2009, 09:10

Forum Jump:


Users browsing this thread: 1 Guest(s)