destroy object for player
#1

how can i destroy a object just for 1 player then if he makes a command it appears for another like,
i have the flare i put /lighton and it attach's it to him then /lightoff it destroys and then when another persons puts /lighton it dosnt appear because its destroyed how can i change that -.-?
Quote:

if (strcmp("/lighton", cmdtext, true, 10) == 0)
{
AttachObjectToPlayer(flare, playerid, 0.0, 2.5, 0.0, 0.0, 0.0, 0.0);
return 1;
}
if (strcmp("/lightoff", cmdtext, true, 10) == 0)
{
DestroyObject(flare);
return 1;
}

Reply


Messages In This Thread
destroy object for player - by FireCat - 17.09.2010, 17:39
Re: destroy object for player - by Mike_Peterson - 17.09.2010, 17:46
Re: destroy object for player - by Mike_Peterson - 17.09.2010, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)