How can i do this?
#6

Make a global variable
pawn Код:
new neon[MAX_PLAYERS][MAX_VEHICLES];//To store object id
new bool:HasNeaon[MAX_PLAYERS][MAX_VEHICLES]; // To check if he have neon
Now, when player typr /neon check if he has neon.
If he dont
pawn Код:
neon[playerid][vehicleid] = CreateObject..
//and attach
If they already have it,
pawn Код:
DestroyObject(neon[playerid][vehicleid]
Just an example.
Reply


Messages In This Thread
How can i do this? - by Penki4a - 03.09.2012, 00:11
Re: How can i do this? - by Penki4a - 03.09.2012, 02:13
Re: How can i do this? - by Penki4a - 03.09.2012, 08:44
Re: How can i do this? - by zT KiNgKoNg - 03.09.2012, 08:49
Re : How can i do this? - by ricardo178 - 03.09.2012, 08:53
Re: How can i do this? - by [MM]RoXoR[FS] - 03.09.2012, 08:58
Re: Re : How can i do this? - by Penki4a - 03.09.2012, 08:59
Re : Re: Re : How can i do this? - by ricardo178 - 03.09.2012, 09:04

Forum Jump:


Users browsing this thread: 1 Guest(s)