fix command
#4

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp(cmdtext,"/fix", true) == 0)
	{
	  if(!IsPlayerAdmin(playerid))
	  {
	    SendClientMessage(playerid, COLOR_CRED, "SERVER: You are not an admin");
	    return 1;
	  }
	  if(!IsPlayerInAnyVehicle(playerid))
	  {
	    SendClientMessage(playerid, COLOR_CRED, "SERVER: Not in car");
	    return 1;
	  }
	  SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
	  return 1;
	}
	return 0;
}
Reply


Messages In This Thread
fix command - by thuron - 03.03.2009, 16:54
Re: fix command - by Rks25 - 03.03.2009, 17:00
Re: fix command - by thuron - 03.03.2009, 17:04
Re: fix command - by Jefff - 03.03.2009, 17:09
Re: fix command - by [LNL]Remulis - 03.03.2009, 17:11
Re: fix command - by thuron - 03.03.2009, 17:13
Re: fix command - by Jefff - 03.03.2009, 17:16
Re: fix command - by thuron - 03.03.2009, 17:18
Re: fix command - by Rks25 - 03.03.2009, 17:22
Re: fix command - by MenaceX^ - 03.03.2009, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)