My TDM briefcase Disapears
#1

when i go in to my Briefcase to load like the health and armour and if i buy one or click off it disapears
how to make it stay there need help

this is my code thats all it has under briefcase

Код:
//Briefcases Aka Weapon Shopes

	RP = CreatePickup(1210,2,-148.4453,1110.0249,19.7500, -1);
	anthraxpickup = CreatePickup(1254, 2, -360.2002, 1597.1082, 76.7178, -1);
	AP = CreatePickup(1210,2,-797.5327,1556.2026,27.1244, -1);
	SL = CreatePickup(1254, 2, 213.98, 1822.96, 6.41);
	EP = CreatePickup(1210,2,1146.6642,1976.5652,10.8203, -1);
	A2P = CreatePickup(1210,2,385.2281,2474.4160,16.5000, -1);
	MP = CreatePickup(1210,2,-252.4021,2603.1230,62.8582, -1); //usa pickup

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{

    if(pickupid == RP && GetPlayerTeam(playerid) != TEAM_SOVIET) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
    {
    if(pickupid == RP) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
    }
    if(pickupid == EP && GetPlayerTeam(playerid) != TEAM_EURASIA) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
    {
    if(pickupid == EP) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
    }
    if(pickupid == AP && GetPlayerTeam(playerid) != TEAM_ARAB) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
    {
    if(pickupid == AP) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
    }
    if(pickupid == A2P && GetPlayerTeam(playerid) != TEAM_AUS) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
    {
    if(pickupid == A2P) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
    }
    if(pickupid == MP && GetPlayerTeam(playerid) != TEAM_USA) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
    {
    if(pickupid == MP) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
    }
	{
 }
 if(pickupid == SL)
    {
        if(nuke_time >= 1)
        {
			new String[80];
            format(String, sizeof(String), "Nuke is not ready for launch wait %d seconds.", nuke_time);
            SendClientMessage(playerid, red, String);
            return 1;
        }
        if(tCP[BIG]== gTeam[playerid])
        {
            ShowPlayerDialog(playerid, 991, DIALOG_STYLE_LIST, "Nuke Station (Area 51):", "Usa Base\nEurasia Base\nArabia Base\nSoviet Base\nAustrallia Base", "Launch", "Cancel");
		} else SendClientMessage(playerid, RED, "Your team dosn't own Area 51.");
	}

	if(pickupid == anthraxpickup)
    {
        if(anthrax_time >= 1)
        {
            new String[70];
            format(String, sizeof(String), "Anthrax is not ready for launch wait %d seconds.", anthrax_time);
            SendClientMessage(playerid, red, String);
            return 1;
        }
        
        if(tCP[EAR] == gTeam[playerid])
        {
            ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Anthrax Station (Big Ear):", "Are you sure you want to launch anthrax.\nYou will be charged -400000 $", "Launch", "Cancel");
		} else SendClientMessage(playerid, RED, "Your team dosn't own Big Ear.");
	}
	return 1;
}
Please help and in need of a Scripter.
Reply
#2

Код HTML:
        RP = CreatePickup(1210,1,-148.4453,1110.0249,19.7500, -1);
	anthraxpickup = CreatePickup(1254, 1, -360.2002, 1597.1082, 76.7178, -1);
	AP = CreatePickup(1210,1,-797.5327,1556.2026,27.1244, -1);
	SL = CreatePickup(1254, 1, 213.98, 1822.96, 6.41);
	EP = CreatePickup(1210,1,1146.6642,1976.5652,10.8203, -1);
	A2P = CreatePickup(1210,1,385.2281,2474.4160,16.5000, -1);
	MP = CreatePickup(1210,1,-252.4021,2603.1230,62.8582, -1); //usa pickup
Quote:
Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 120 seconds.

Reply
#3

public OnPlayerPickUpPickup(playerid, pickupid)
{

if(pickupid == RP && GetPlayerTeam(playerid) != TEAM_SOVIET) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
{
if(pickupid == RP) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
}
if(pickupid == EP && GetPlayerTeam(playerid) != TEAM_EURASIA) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
{
if(pickupid == EP) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
}
if(pickupid == AP && GetPlayerTeam(playerid) != TEAM_ARAB) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
{
if(pickupid == AP) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
}
if(pickupid == A2P && GetPlayerTeam(playerid) != TEAM_AUS) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
{
if(pickupid == A2P) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
}
if(pickupid == MP && GetPlayerTeam(playerid) != TEAM_USA) return SendClientMessage(playerid, 0xFF0000AA, "You can't use other team briefcase.");
{
if(pickupid == MP) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 5500$\n\nWeapons\nDeathmatch stadium\nRunnies Deathmatch", "Select", "Cancel");
}
{
}
if(pickupid == SL)
{
if(nuke_time >= 1)
{
new String[80];
format(String, sizeof(String), "Nuke is not ready for launch wait %d seconds.", nuke_time);
SendClientMessage(playerid, red, String);
return 1;
}
if(tCP[BIG]== gTeam[playerid])
{
ShowPlayerDialog(playerid, 991, DIALOG_STYLE_LIST, "Nuke Station (Area 51):", "Usa Base\nEurasia Base\nArabia Base\nSoviet Base\nAustrallia Base", "Launch", "Cancel");
} else SendClientMessage(playerid, RED, "Your team dosn't own Area 51.");
}

if(pickupid == anthraxpickup)
{
if(anthrax_time >= 1)
{
new String[70];
format(String, sizeof(String), "Anthrax is not ready for launch wait %d seconds.", anthrax_time);
SendClientMessage(playerid, red, String);
return 1;
}

if(tCP[EAR] == gTeam[playerid])
{
ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Anthrax Station (Big Ear):", "Are you sure you want to launch anthrax.\nYou will be charged -400000 $", "Launch", "Cancel");
} else SendClientMessage(playerid, RED, "Your team dosn't own Big Ear.");
}
return 1;
}

as soon as you walk in them and click something to buy or walk in and click off it disapears how to make it static?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)