#1

Код:
	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
Reply
#2

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

under /dm IsInDM[playerid] = 1;

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


Forum Jump:


Users browsing this thread: 1 Guest(s)