SA-MP Forums Archive
Help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help! (/showthread.php?tid=228844)



Help! - New Ilyass - 20.02.2011

Код:
	if (strcmp("/dm", cmdtext, true ,10) == 0)
	{
	    SetPlayerPos(playerid, 1305.9880,2107.8486,11.0156);
	    SetPlayerFacingAngle(playerid, 316.7472);
	    SetPlayerInterior(playerid, 0);
	    ResetPlayerWeapons(playerid);
		GivePlayerWeapon(playerid, 24, 999);
		GivePlayerWeapon(playerid, 27, 999);
		SetPlayerVirtualWorld(playerid, 1);
		return 1;
	}
	if (strcmp("/exit", cmdtext, true, 10) == 0)
	{
 		SpawnPlayer(playerid);
	   	return 1;
	}
I'm try with this to /exit player from DM, but All players can Respawn with Exit
Help Please


Re: Help! - Voldemort - 20.02.2011

pawn Код:
new IsInDM[MAX_PLAYERS]; //Top

under /dm IsInDM[playerid] = 1;

under /exit if(IsInDM[playerid] == 1) { . .. .  IsInDM[playerid] = 0; }