Jump to content

Question

Posted

Ma puteti ajuta sa incerc sa fac si eu functia asta cu DMZone ca nu ii dau de cap ...

stiu ca inceputul e asa

new DMZone[MAX_PLAYERS];

si cmd e asta

if(strcmp(cmdtext, "/exitdm", true) == 0)
	{
		if(DMZone[playerid] >= 1)
		{
			DMZone[playerid] = 0;
	    	SpawnPlayer(playerid);
			SetCameraBehindPlayer(playerid);
		}
		else
		{
		    SendClientMessage(playerid, COLOR_RED, "Trebuie sa fii intr-un DM ca sa poti iesi din el.");
		}
		return 1;
	}

si vreau sa pun la fiecare DM cand mori sa te dea tot in locul ala si ca sa iesi din dm /exitdm intelegeti voi :P

ll364l6j8dg3et84ks3w.png

4 answers to this question

Recommended Posts

Guest farse
Posted

pai ca sa te dea din nou in dm trebuie sa faci olec mai complicat


new PlayerDM[MAX_PLAYERS][256];

//un dm..ex:
if(strcmp(cmdtext,"/minigun",true)==0)
{
format(PlayerDM[playerid],255,"/minigun");
DMZone[playerid]=1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(DMZone[playerid]==1)
{
OnPlayerCommandText(playerid,PlayerDM[playerid]);
}
return 1;
}


PS:Se poate ca sa "evadeze" din dm,pune asta la OnplayerCommandText ca sa nu..


if(DMZone[playerid]&& strcmp(cmdtext, "/exitdm", true))
{
SendClientMessage(playerid,COLOR_RED,"Nice joke bitch,kill or fuck yourself(or use /exitdm)");
return 1;
}


Posted

si ca , cand sunt in DM sa nu poate folosi nicio comanda adik BLOCKCOMAND ...:| ca am observat ca daca te duci in DM si mori e bne ca te da tot in acelasi loc dar problema e ca pot dda /aa  sa ma teleporteze ..:|

ll364l6j8dg3et84ks3w.png

Guest farse
Posted

if(DMZone[playerid]&& strcmp(cmdtext, "/exitdm", true))

{

SendClientMessage(playerid,COLOR_RED,"Nice joke bitch,kill or fuck yourself(or use /exitdm)");

return 1;

}

...citeste tot ce am zis..

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.