HELP: /at400s command help
#1

I'm trying to make command for enter in at 400s

pawn Код:
stock bool:IsVehicleInUse(vehicleid)
{
    foreach(Player, i)
    {
       if(GetPlayerVehicleID(i) == vehicleid)
       {
          return (true);
       }
    }
    return (false);
}

stock bool:IsPlayerNearVehicle(playerid, Float:radius, vehicleid)
{
    new Float:Pos[3];
    GetVehiclePos(vehicleid, Pos[0], Pos[1], Pos[2]);
    if(IsPlayerInRangeOfPoint(playerid, radius, Pos[0], Pos[1], Pos[2]))
    {
        return (true);
    }
    return (false);
}

YCMD:at400s(playerid, params[], help)
{
   if(PlayerLogin{playerid} == false) return logout(playerid);
   else if(IsPlayerInAnyVehicle(playerid)) return (true);
   else
   {
      for(new v=0;v<MAX_VEHICLES;v++)
      {
          if(IsPlayerNearVehicle(playerid, 10.0, v) && GetVehicleModel(v) == 577)
          {
             if(!IsVehicleInUse(v))
             {
                PutPlayerInVehicle(playerid, v, PLAYER_STATE_DRIVER);
             }
          }
      }
   }
   return (true);
}
But it dosen't work im near empty at400s and when i use /at400s nothing happen.
Reply


Messages In This Thread
HELP: /at400s command help - by DarkPower - 16.09.2012, 16:03
Re: HELP: /at400s command help - by DarkPower - 16.09.2012, 21:33
Re: HELP: /at400s command help - by C00K13M0N$73R - 16.09.2012, 21:44
Re: HELP: /at400s command help - by [FAT]Klabauter[LST] - 16.09.2012, 21:56
Re: HELP: /at400s command help - by DarkPower - 16.09.2012, 22:16
Re: HELP: /at400s command help - by mamorunl - 16.09.2012, 23:58
Re: HELP: /at400s command help - by DarkPower - 17.09.2012, 05:29
Re: HELP: /at400s command help - by [FAT]Klabauter[LST] - 17.09.2012, 06:27
Re: HELP: /at400s command help - by DarkPower - 17.09.2012, 11:40
Re: HELP: /at400s command help - by [FAT]Klabauter[LST] - 17.09.2012, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)