Need Little Help Only!
#1

Hey all i made /mdm1 Command (MINIGUN DEATH MATCH)

But how do make leaveing command?

i have this code:

Код:
if(strcmp("/mdm1", cmdtext, true, 10) == 0)
	{
        if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection");
      if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM");
      else
      {
		new pName[MAX_PLAYER_NAME];
        new string[128];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
		format(string, sizeof(string), "{FFFFFF}[SERVER]:{FF002B}%s has teleported to {FFFFFF}Minigun Area - Xtreme Stunting Minigun Area (BETA) (/mdm1)",pName);
        SendClientMessageToAll(COLOR_RED, string);
		SendClientMessage(playerid, COLOR_GREEN,"Welcome To Minigun Area");
        GameTextForPlayer(playerid,"~w~Welcome To ~r~Minigun ~g~Area ~y~4",3000,3);
		if (IsPlayerInAnyVehicle(playerid)) {
            SetVehiclePos(GetPlayerVehicleID(playerid),2306.8291,1406.1932,42.4696);
            SetVehicleZAngle(GetPlayerVehicleID(playerid),268);
		} else {
            SetPlayerPos(playerid,200.0273,1388.7929,42.6139);
            SetPlayerFacingAngle(playerid,118);
            GivePlayerWeapon(playerid, 38, 99999999);
            PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
            SetPlayerInterior(playerid,0);
		}
	  }
		return 1;
	}
Reply


Messages In This Thread
Need Little Help Only! - by James Coral - 24.12.2011, 14:48
Re: Need Little Help Only! - by James Coral - 24.12.2011, 14:57
Re: Need Little Help Only! - by Rob_Maate - 24.12.2011, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)