Jump to content
  • 0

/exitdm


xxSPEEDYxx

Question

1 answer to this question

Recommended Posts

Setezi aceeasi variabila la toate DM-urile si la /exitdm la fel ...

1.Sus in script pui:

VariabilaExitDM[ MAX_PLAYERS ];
2.La inceputul la OnPlayerCommandText pui:
if ( VariabilaExitDM[ playerid ] == 1 ) //dm exitdm blockcommand
{
    if ( strcmp( cmdtext, "/kill", 	 true ) == 0 ) return 1;
    if ( strcmp( cmdtext, "/exitdm", true ) == 0 ) return 1;
    SendClientMessage(playerid, -1, "Nu poti iesi din acest DM decat cu {FF0000}/exitdm {FFFFFF}sau {FF0000}/kill");
    return (0);
}
3.La DM-uri pui:
VariabilaExitDM[ playerid ] = 1;
4.La /exitdm si /kill pui:
VariabilaExitDM[ playerid ] = 0;

5.Stergi toate celelalte chestii care au legatura cu /exitteleport.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.