Commands in radius [ REP + ]
#2

Код:
COMMAND:radiushp(playerid, params[])
{
     new radius, Float:health, Float:x, Float:y, Float:z;
     if(sscanf(params, "df", radius, health)) return SendClientMessage();
     GetPlayerPos(playerid, x, y, z);

     for(new i = 0; i <= GetPlayerPoolSize(); i++) if(IsPlayerInRangeOfPoint(i, radius, x, y, z);
     {
          SetPlayerHealth(playerid, health);
     }
     return 1;
}
Код:
COMMAND:respawncars(playerid, params[])
{
     new radius, Float:x, Float:y, Float:z;
     if(sscanf(params, "d", radius)) return SendClientMessage();

     for(new i = 0; i <= GetVehiclePoolsize(); i++) if(IsPlayerInRangeOfPoint(i, radius, x, y, z);
     {
          GetVehiclePos(i, x, y, z);

          if(IsPlayerInRangeOfPoint(i, radius, x, y, z)
               return SetVehicleToRespawn(i);
     }
     return 1;
}
Reply


Messages In This Thread
Commands in radius [ REP + ] - by _GHT_MarK445 - 27.05.2015, 19:59
Re: Commands in radius [ REP + ] - by Sledgehammer - 27.05.2015, 20:09
Re: Commands in radius [ REP + ] - by J4Rr3x - 27.05.2015, 20:10
Re: Commands in radius [ REP + ] - by Sledgehammer - 27.05.2015, 20:14
Re: Commands in radius [ REP + ] - by _GHT_MarK445 - 27.05.2015, 21:17
Re: Commands in radius [ REP + ] - by Dubya - 28.05.2015, 08:12

Forum Jump:


Users browsing this thread: 2 Guest(s)