Jump to content
  • 0

problema


andy47

Question

6 answers to this question

Recommended Posts

Sal.

Pune asta la sfarsit:

forward IsPlayerInDM(playerid);
public IsPlayerInDM(playerid)
{
	new message[256];
	if(DM[playerid] == 1)
	{
		format(message, sizeof(message), "[DM-INFO] Pentru a iesi din acest DM, scrie /exitdm .");
		SendClientMessage(playerid, 0xFFFFFFFF, message);
	}
	return 0;
}

Si adauga if(IsPlayerInDM(playerid)) la fiecare comanda de teleport.

i0418xcttya707ofg.jpg

Link to comment
Share on other sites

Sall @andy47.Uite o comanda cu exitdm .Incearca sa vezi daca merge daca nu merge da un pm

if(!strcmp(cmdtext,"/qdm",true))

DM[playerid] = 0;

SetPlayerVirtualWorld(playerid,0);

PlayerPlaySound(playerid,1085,0.0,0.0,0.0);

ResetPlayerWeapons(playerid);

SetPlayerHealth(playerid,0);

SendClientMessage(playerid,0x7CFC00AA,"Ai iesit din zona de DM.");

return 1;

}

idiots.png
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.