no cars in here!
#9

Quote:
Originally Posted by CodyCummings
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/destroycar", true) == 0)
{
    if(!IsPlayerAdmin(playerid)) return 1;
    new Float:X, Float:Y, Float:Z;
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
        GetVehiclePos(i, X, Y, Z);
        if(IsPlayerInRangeOfPoint(playerid, 10.0, X, Y, Z))
        {
            DestroyVehicle(i);
        }
    }
    return 1;
}
Good but I only want it to work when I'm inside the car. What I have to do?
Reply


Messages In This Thread
no cars in here! - by RiChArD_A - 19.01.2013, 17:31
Re: no cars in here! - by Mr.Anonymous - 19.01.2013, 17:41
Respuesta: Re: no cars in here! - by RiChArD_A - 19.01.2013, 17:42
Re: no cars in here! - by [ABK]Antonio - 19.01.2013, 17:45
Respuesta: Re: no cars in here! - by RiChArD_A - 19.01.2013, 17:56
Re: no cars in here! - by Mr.Anonymous - 19.01.2013, 18:25
Respuesta: Re: no cars in here! - by RiChArD_A - 19.01.2013, 18:44
Re: Respuesta: Re: no cars in here! - by CodyCummings - 19.01.2013, 19:23
Respuesta: Re: Respuesta: Re: no cars in here! - by RiChArD_A - 19.01.2013, 19:32
Re: no cars in here! - by CodyCummings - 19.01.2013, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)