How to do these 2 things? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to do these 2 things? (
/showthread.php?tid=336801)
How to do these 2 things? -
HazardGaming - 23.04.2012
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?
Re: How to do these 2 things? -
Jows - 23.04.2012
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;
}
Re: How to do these 2 things? -
HazardGaming - 23.04.2012
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?
Re: How to do these 2 things? -
Jows - 23.04.2012
aa okei
you have some Public SaveCars or something?
Re: How to do these 2 things? -
HazardGaming - 23.04.2012
Nope, This is why I need help?
Re: How to do these 2 things? -
HazardGaming - 23.04.2012
Anyone?