vehicle spawner question
#1

Hi ,
i am new to SAMP , i have one question stuck in my mind right now.

When i put a vehicle on map , and a player drives it away , how can make it respawn within a certain peroid.
(it will not respawn if its not being driven away)

I hope someone can guide me.
Thankss
Reply
#2

well, when you adding vehicles there are a interval of spawn of vehicle https://sampwiki.blast.hk/wiki/CreateVehicle
if you want a cmd then look here >>
pawn Код:
if(strcmp(cmdtext,"/rv", true) == 0)
    {
        if(GetPlayerAdminz(playerid) < 1) return 0;
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetVehicleToRespawn(GetPlayerVehicleID(playerid));
            SendClientMessage(playerid,COLOR_GREEN,"( ! ) Vehicle respawned !");
        }
        else
        {
        SendClientMessage(playerid,c_r,"( ! ) You must be in the vehicle you want to respawn !");
        }
        return 1;
    }
if you want you can remove checking if is admin for use this cmd
Reply
#3

thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)