Help please!
#1

Hi there,I have a little problem. I use a Car spawner wich works like this /car [name/part of name].
Do you know what can i do when a player spawns a second vehicle the first one dissapaire?

Tanks, and i know my english sucks but I'm romanian.

Here is the car spawner"

http://solidfiles.com/d/7efad/

Tanks again!
Reply
#2

somme help please
Reply
#3

Make a global Variable
pawn Код:
new Playercar[MAX_PLAYERS];
then when he spawns the car:
pawn Код:
//othercodeothercode
DestroyVehicle(Playercar[playerid]);
Playercar[playerid] = CreateVehicle(/*his pos or whatever*/)
//othercodeothercode
Reply
#4

Quote:
Originally Posted by Bessensap
Посмотреть сообщение
Make a global Variable
pawn Код:
new Playercar[MAX_PLAYERS];
then when he spawns the car:
pawn Код:
//othercodeothercode
DestroyVehicle(Playercar[playerid]);
Playercar[playerid] = CreateVehicle(/*his pos or whatever*/)
//othercodeothercode
and what i have to write here?
pawn Код:
/*his pos or whatever*/
because everything i put i have 7 warnings
Reply
#5

https://sampwiki.blast.hk/wiki/CreateVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)