Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Car Respawn.
Biess
Huge Clucker
Posts: 264
Threads: 45
Joined: Apr 2012
Reputation:
0
#1
28.11.2012, 17:51
Hello there.
Can someone make me a Automatic Car Respawner for cars that have been driven?
I use ZCMD
Find
Reply
ReVo_
Gangsta
Posts: 535
Threads: 36
Joined: Oct 2009
Reputation:
0
#2
28.11.2012, 18:58
new bool:iVUsed[MAX_VEHICLES] = {false, ...};
OnPlayerStateChange
if (newstate == PLAYER_STATE_DRIVER)
iVUsed[GetPlayerVehicleID(playerid)] = true;
In the command:
for (new i = 0; i < MAX_VEHICLES; i++)
if (iVUsed[i])
SetVehicleToRespawn(i), iVUsed[i] = false;
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help