Jump to content
  • 0

Dm interzicerea folosiri comenzi


eXtreMe96

Question

Am gasit un sistem de death match pe intenet dar are un minus daca sunt in zona de dm ma pot teleporta unde nar fi comanda de iesire e asa

if(!strcmp(cmdtext,"/QDm",true)) // Dm ????? ???? ???????
	{
		if(DM[playerid] == 0) return SendClientMessage(playerid,0xFF0000FF,"You no in DeathMatch-Z");
		DM[playerid] = 0;
		SetPlayerVirtualWorld(playerid,0);
		PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
		ResetPlayerWeapons(playerid);
		SetPlayerHealth(playerid,0);
		SendClientMessage(playerid,0x7CFC00AA,"Quit DeathMatch-Z");


return 1;
}

cum so modific ca sa nu ma pot teleporta in timpul dm

lol

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Uite asa:

    if(DM[playerid]&& strcmp(cmdtext, "/kill", true) && strcmp(cmdtext, "/QDm", true) != 0) return SendClientMessage(playerid,COLOR_RED,"[ERROR] You can't leave this DM! To leave type /QDm");

Punel sus de tot la public OnPlayerCommandText.

Si in loc de /kill pui si tu ce Comanda vrei, si mai adaugi daca vrei!

142sj0l.png

Underground-GFX

Link to comment
Share on other sites

pui comanda /kill sub { de la OnPlayercommandtext iar apoi pui

if(DM[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF,"You can't use any commands while in Deathmatch, except /kill.");

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

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.