Serching Red Flare objectid
#1

Im serching for the objectid of the red smoking flare.

Before you tell me to look it up in a mapeditor,
i can't cause this model is only created once in the mission N.O.E i think where you have to put a Flare creating red smoke to make a helicopter droping a package.
I need the objectid for that flare so players can put red smoke markers on the ground.

can anyone tell me the id or how i could find such things out on my own without cycling through 18000 ids?
Reply
#2

https://sampwiki.blast.hk/wiki/Objects_0.3c
Reply
#3

i love you
Reply
#4

i need the id also can u post the object id i dont see it
Reply
#5

Quote:
Originally Posted by Zonoya
Посмотреть сообщение
i need the id also can u post the object id i dont see it
18728 smoke_flare
in particle effects
Reply
#6

how to make a cmd like /Flare and to stop it /sFlare? in zcmd can some one help me pls?
Reply
#7

why would oyu need a zcmd?
just use the standard onplayercommand, save the objectid to an array and when deleting set that value to something like -1. when typing flare or sflare you just check if the flare objectid for that player is -1 and act acordingly (meaning that a player with no flare can't delete random objects with the id of his last flare and a player can't have 2 flares)

like this
Код:
// global
new PlayerFlareObject[MAX_PLAYERS];
// in on player command text
if (!strcmp(cmd,"/flare",true))
{
    if (PlayerFlareObject[playerid] == -1) // player haves no flare, create it
    {
        PlayerFlareObject[playerid] = CreateObject(bla);
    }
    else // player haves a flare, delete it
    {
        DestroyObject(PlayerFlareObject[playerid]);
        PlayerFlareObject[playerid] = -1;
    }
    return 1;
}
im sure you can change it to your likings
Reply
#8

Quote:
Originally Posted by Falco-Ger
Посмотреть сообщение
why would oyu need a zcmd?
It's a command processor..
Reply
#9

He didn't mean it like that, he meant why use it when you could use the basic strcmp command processor.
Reply
#10

Quote:
Originally Posted by TheDominator
Посмотреть сообщение
the basic strcmp command processor.
strcmp is not command processor.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)