Jump to content

Question

Posted

salls...cum as putea cu comanda /exitdm sa ies din fiecare dm in care sunt ca eu am la fiecare dm o comanda de iesire..?

deci cum as putea sa fac sa ies numai cu /exitdm din toate?

Fara reclama in semnatura!

1 answer to this question

Recommended Posts

Posted

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.

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.