26.05.2010, 17:14
nice.
I have remove SetTimerEx("DestroyStinger"...)
I want to create a command /removespike, i successful for to destroy the object but no the pickup. You can help me.
It's bad, just a example. Thanks.
I have remove SetTimerEx("DestroyStinger"...)
I want to create a command /removespike, i successful for to destroy the object but no the pickup. You can help me.
Code:
if (!strcmp("/spike", cmdtext)) { new Float:x, Float:y, Float:z, Float:A; GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid, A); new pickid1 = CreatePickup(1007,14,x,y,z-0.9,0); PlayerInfo[playerid][pSpike]= CreateObject(2892, x, y, z-0.9, 0.0, 0.0, A+180); iPickups[pickid1] = PlayerInfo[playerid][pSpike]; return 1; } f (!strcmp("/destroyspike", cmdtext)) { if(PlayerInfo[playerid][pSpike]!=0) { DestroyObject(PlayerInfo[playerid][pSpike]); DestroyPickup( iPickups[pickid1]); } return 1; }