How to do these 2 things?
#1

Hello,

How would I make a despawn command for all spawned vehicles? (/veh [id] for admins, to despawn these cars)

Also,

How would I make a spawn command which saves cars my ServerData file and loads up when the server starts?
Reply
#2

1.
pawn Код:
CMD:veh(playerid, params[])
{
    new car;
    if(!IsPlayerAdmin) return SendClientMessage(playerid, COLOR_RED, "You are not admin!");
    if(sscanf(params, "u",car)) return SendClientMessage(playerid, COLOR_RED, "/veh [carid]");
    SetVehicleToRespawn(car);
    return 1;
}
Reply
#3

I already got the vehicle respawn command:P, I mean like, how would I make a command to save the vehicle to a .ini file in scriptfiles? and load the vehicles when the server restartes or something?
Reply
#4

aa okei
you have some Public SaveCars or something?
Reply
#5

Nope, This is why I need help?
Reply
#6

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)