dm1 spawn!help
#9

Sorry.It was a bug on your script.
Код:




#include <a_samp>
#include <streamer>
#include <sscanf>
#include <core>
#include <float>

#define COLOR_RED 0xAA3333AA
#define COLOR_BLUE	0x33CCFFAA
#define COLOR_ERROR 0xFF6A6AFF
#define COLOR_BOMB 0x96BD6AFF

enum DMINFO
{
 DM1
}

new dInfo[MAX_PLAYERS][DMINFO];

public OnPlayerSpawn(playerid)
{
       if(dInfo[playerid][DM1] == 1)
       {
        SetPlayerPos(playerid, -1314.0879,2541.4563,87.7422);
        GivePlayerMoney(playerid, -15000);
		PlayerPlaySound(playerid ,3200,0,0,0);
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		SetPlayerSkin(playerid, 293);
		GivePlayerWeapon(playerid, 24, 18000);
		GivePlayerWeapon(playerid, 25, 18000);
		GivePlayerWeapon(playerid, 16, 18000);
		GivePlayerWeapon(playerid, 28, 18000);
		GivePlayerWeapon(playerid, 31, 18000);
		}
       if(dInfo[playerid][DM1] == 0)
        {
         TogglePlayerControllable(playerid,1);
         SetPlayerArmour(playerid, 100);
         SetPlayerHealth(playerid, 100);
        }
       return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

	if (strcmp(cmdtext, "/dm1", true) == 0)
	{
		dInfo[playerid][DM1] = 1;
        SetPlayerPos(playerid, -1314.0879,2541.4563,87.7422);
		GivePlayerMoney(playerid, -15000);
		SendClientMessage(playerid, COLOR_RED, ".: Your Join DM 1 :.");
	  	PlayerPlaySound(playerid ,3200,0,0,0);
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		SetPlayerSkin(playerid, 293);
		GivePlayerWeapon(playerid, 24, 18000);
		GivePlayerWeapon(playerid, 25, 18000);
		GivePlayerWeapon(playerid, 16, 18000);
		GivePlayerWeapon(playerid, 28, 18000);
		GivePlayerWeapon(playerid, 31, 18000);
        return 1;
}
    return 1;
}
}
Reply


Messages In This Thread
dm1 spawn!help - by Airblog - 02.10.2014, 13:50
Re: dm1 spawn!help - by PabloAguado - 02.10.2014, 13:53
Re: dm1 spawn!help - by Airblog - 02.10.2014, 14:24
Re: dm1 spawn!help - by YanLanger - 02.10.2014, 14:34
Re: dm1 spawn!help - by Airblog - 02.10.2014, 14:35
Re: dm1 spawn!help - by SWGamer - 02.10.2014, 14:44
Re: dm1 spawn!help - by Airblog - 02.10.2014, 14:47
Re: dm1 spawn!help - by MrCallum - 02.10.2014, 14:49
Re: dm1 spawn!help - by SWGamer - 02.10.2014, 14:55
Re: dm1 spawn!help - by Airblog - 02.10.2014, 15:09

Forum Jump:


Users browsing this thread: 2 Guest(s)