Jump to content
  • 0

Obiect apare/dispare


Oly

Question

3 answers to this question

Recommended Posts

mie imi trebuie sa dispara cand dau o comanda :(

//sus in script
new InvizibleObject;

//OnGameModeInit
InvizibleObject = CreateObject( id_obiect, x, y, z, rx, ry, rz, drawdistance );

//Comanda
if( strcmp( cmdtext, "/dispare", true ) == 0 )
{
    if( InvizibleObject != INVALID_OBJECT_ID ) DestroyObject( InvizibleObject );
    return 1;
}

if( strcmp( cmdtext, "/apare", true ) == 0 )
{
    if( InvizibleObject == INVALID_OBJECT_ID ) CreateObject( id_obiect, x, y, z, rx, ry, rz, drawdistance );
    return 1;
}

Acesta a fost un exemplu.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.