Jump to content
  • 0

Executare comanda problem...


xxSPEEDYxx

Question

Folosesc ZCMD am pus variabila in care esti in DM sa nu te poate lasa sa dai comenzi la:

[pawn]

public OnPlayerCommandReceived( playerid, cmdtext[ ] )

{

    if ( DM[ playerid ] == 1 )   return Game3TextForPlayer( playerid, "~r~ERROR!: ~y~You can't use commands in a DeathMatch! Use /exitdm to leave the DeathMarch!" );

    return 1;

}

[/pawn]

si cand sunt intr-un DM scriu ceva comanda imi trimite clientu dar imi executa si comanda...

Fara reclama in semnatura!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Incearca asa:

[pawn]

public OnPlayerCommandReceived( playerid, cmdtext[ ] )

{

if( DM[ playerid ] == 1 )  

{

if( strcmp( cmdtext, "/exitdm", true ) == 0 ) return ( 1 );

Game3TextForPlayer( playerid, "~r~ERROR!: ~y~You can't use commands in a DeathMatch! Use /exitdm to leave the DeathMarch!" );

return ( 0 );

}

return 1;

}

[/pawn]

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.