27.05.2012, 12:40
I am creating a mode in which Player gets a car after killing some players.
It workes fine.
Now I want to destroy his/her car after 2 minutes.
I have already created array to give player his/her own car.
Here is code for better understanding
It workes fine.
Now I want to destroy his/her car after 2 minutes.
I have already created array to give player his/her own car.
Here is code for better understanding
Код:
forward DestroyCar(playerid); { pCar[playerid] = CreateVehicle(bla bla); //SetTimer("DestroyCar",12000,false); for 2 minutes here } //After 2 Minutes public DestroyCar(playerid) { DestroyVehicle(pCar[playerid]);//Car should be destroyed of that particular player only. }