Help With Dm Madness
#1

Hello Guys i need A Help With Dm
Please this dm when join mini-gun madness time start of 15 second after 15 seconds round start when a player win round he will out from dm area and he win 500 mingun:

Help me please there is code make it

Code:

Code:
if(strcmp(cmdtext, "/minigunmadness", true) == 0)
	{
		new name[MAX_PLAYER_NAME];
		new msg[256];
        GetPlayerName(playerid,name,MAX_PLAYER_NAME);
        format(msg, sizeof(msg), "TELE: %s has gone to Minugun Madness (/minigunmadness)",name,playerid);
        SendClientMessageToAll(COLOR_YELLOW,msg);
	    ResetPlayerWeapons(playerid);
		new MinigunMadness[128], playerName[MAX_PLAYER_NAME], RandomSpawn = random(6);
		GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
		DMZone[playerid] = 1;
		if (RandomSpawn == 0)
		{
			InCar[playerid] = false;
			SetPlayerPos(playerid, 2595.3945,2758.7642,23.8222);
			SetPlayerFacingAngle(playerid, 247.9706);
			SetCameraBehindPlayer(playerid);
		}
		if (RandomSpawn == 1)
		{
			InCar[playerid] = false;
			SetPlayerPos(playerid, 2600.9648,2726.4263,23.8222);
			SetPlayerFacingAngle(playerid, 329.4380);
			SetCameraBehindPlayer(playerid);
		}
		if (RandomSpawn == 2)
		{
			InCar[playerid] = false;
			SetPlayerPos(playerid, 2639.5300,2729.5732,23.8222);
			SetPlayerFacingAngle(playerid, 46.8321);
			SetCameraBehindPlayer(playerid);
		}
		if (RandomSpawn == 3)
		{
			InCar[playerid] = false;
			SetPlayerPos(playerid, 2642.3181,2757.0920,23.8222);
			SetPlayerFacingAngle(playerid, 121.7195);
			SetCameraBehindPlayer(playerid);
		}
		if (RandomSpawn == 4)
		{
			InCar[playerid] = false;
			SetPlayerPos(playerid, 2649.0498,2780.8462,19.3222);
			SetPlayerFacingAngle(playerid, 196.2701);
			SetCameraBehindPlayer(playerid);
		}
		if (RandomSpawn == 5)
		{
			InCar[playerid] = false;
			SetPlayerPos(playerid, 2607.4639,2732.1467,36.5386);
			SetPlayerFacingAngle(playerid, 255.2007);
			SetCameraBehindPlayer(playerid);
		}
		GivePlayerWeapon(playerid, 38, 2000);
		SetPlayerInterior(playerid, 0);
		SendClientMessage(playerid, COLOR_BASIC, "You have been teleported to -MinigunMadness-");
		SendClientMessage(playerid, COLOR_RED, "SHOOTING WITH MINIGUN OUTSIDE -MINIGUNMADNESS- WILL RESULT IN KICK OR BAN!!!");
		format(MinigunMadness, sizeof(MinigunMadness), "%s has teleported to /MinigunMadness", playerName);
		for(new i=0; i<MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				if(ReceiveInfo[i] == true)
				{
					SendClientMessage(i, COLOR_GREY, MinigunMadness);
				}
			}
		}
		return 1;
	}
__________________
Reply
#2

So you really think creating a second SIMILAR thread will help you ?

Old thread:

https://sampforum.blast.hk/showthread.php?tid=286912

Next time, wait 48 hours to bump that thread.
Reply
#3

Sorry but anyone not helping me
Reply
#4

Code:
//Top Of your Script
new Float:MiniGun1[6][4] =
{
		{2595.3945,2758.7642,23.8222,247.9706}, //
		{2600.9648,2726.4263,23.8222,329.4380}, //
		{2639.5300,2729.5732,23.8222,46.8321}, //
		{2642.3181,2757.0920,23.8222,121.7195},//
		{2649.0498,2780.8462,19.3222,196.2701},//
		{2607.4639,2732.1467,36.5386,255.2007}
};





//OnPlayerCommandText
if(strcmp(cmdtext, "/minigunmadness", true) == 0)
	{
		new name[MAX_PLAYER_NAME];
		new msg[256];
        GetPlayerName(playerid,name,MAX_PLAYER_NAME);
        format(msg, sizeof(msg), "TELE: %s has gone to Minugun Madness (/minigunmadness)",name,playerid);
        SendClientMessageToAll(COLOR_YELLOW,msg);
	    ResetPlayerWeapons(playerid);
		new MinigunMadness[128], playerName[MAX_PLAYER_NAME];
		GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
		new mg = random(sizeof(MiniGun1));
		DMZone[playerid] = 1;

		{
			InCar[playerid] = false;
			SetPlayerPos(playerid,MiniGun1[mg][0],MiniGun1[mg][1],MiniGun1[mg][2]);
			SetPlayerFacingAngle(playerid, MiniGun1[mg][3]);
			SetCameraBehindPlayer(playerid);
		}
		GivePlayerWeapon(playerid, 38, 2000);
		SetPlayerInterior(playerid, 0);
		SendClientMessage(playerid, COLOR_BASIC, "You have been teleported to -MinigunMadness-");
		SendClientMessage(playerid, COLOR_RED, "SHOOTING WITH MINIGUN OUTSIDE -MINIGUNMADNESS- WILL RESULT IN KICK OR BAN!!!");
		format(MinigunMadness, sizeof(MinigunMadness), "%s has teleported to /MinigunMadness", playerName);
		for(new i=0; i<MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				if(ReceiveInfo[i] == true)
				{
					SendClientMessage(i, COLOR_GREY, MinigunMadness);
				}
			}
		}
		return 1;
	}
	return 0;
}
Not tested maybe work
Reply
#5

Not Wokring no time start
i say when anyone join /minigunmadness then start 15 seconds time to start round
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)