1 post in this topic

Здравствуйте пользователи 

Команда для рескара авто в радиусе 15 метров.

метраж можно менять.

Спойлер

if(strcmp(cmd, "/scar", true) == 0)
{
        if(AdminLog[playerid] != 1) return SendClientMessage(playerid,COLOR_FADE1,ADMINLOG);
        new Float:vXc, Float:vYc, Float:vZc;
        SendClientMessage(playerid, COLOR_WHITE, "Вы зареспавнили авто в радиусе 15 метров вирт.");
        for(new care=0; care<MAX_VEHICLES; care++)
        {
                GetVehiclePos(care,vXc,vYc,vZc);
                {
                        if(PlayerToPoint(15,playerid,vXc,vYc,vZc))
                        {
                                if(!IsVehicleOccupied(care))
                                {
                                        SetVehicleToRespawn(care);
                                }
                        }
                }
        }
        return true;
}

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0