Quote:
Originally Posted by Last_Stand_Guardian
Top of the script:
pawn Код:
forward DisMenu(playerid);
and
pawn Код:
new DisableMenu[MAX_PLAYERS];
pawn Код:
public DisMenu(playerid) { DisableMenu[playerid] = 0; return 1; }
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == Blabla) { if(DisableMenu[playerid] == 0) { //ShowMenu-Code } } return 1; }
Now where you get the weapon, add:
pawn Код:
DisableMenu[playerid] = 1;
and
pawn Код:
SetTimerEx("DisMenu", 120000, false, "d", playerid);
|
i get these errors:
C:\Users\Guest\Desktop\New folder\gamemodes\Untitled.pwn(22) : error 021: symbol already defined: "DisableMenu"
C:\Users\Guest\Desktop\New folder\gamemodes\Untitled.pwn(25) : error 028: invalid subscript (not an array or too many subscripts): "DisableMenu"
C:\Users\Guest\Desktop\New folder\gamemodes\Untitled.pwn(25) : warning 215: expression has no effect
C:\Users\Guest\Desktop\New folder\gamemodes\Untitled.pwn(25) : error 001: expected token: ";", but found "]"
C:\Users\Guest\Desktop\New folder\gamemodes\Untitled.pwn(25) : error 029: invalid expression, assumed zero
C:\Users\Guest\Desktop\New folder\gamemodes\Untitled.pwn(25) : fatal error 107: too many error messages on one line
the top of my script is:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
//--------------------------------------------------//
#define COLOUR_GREEN 0x33AA33AA
#define COLOUR_RED 0xAA3333AA
#define COLOUR_YELLOW 0xFFFF00AA
#define COLOUR_LIGHTBLUE 0x33CCFFAA
#define COLOUR_ORANGE 0xFF9900AA
#define TEAM_GROVE 1
#define TEAM_POLICE 2
#define TEAM_AZTECS 3
#define TEAM_BALLAS 4
#define TEAM_GROVE_COLOR 0x77CC77FF
#define TEAM_POLICE_COLOR 0x7777DDFF
#define TEAM_AZTECS_COLOR 0x7777DDFF
#define TEAM_BALLAS_COLOR 0x7777DDFF
//-------------------------------------------------//
forward DisMenu(playerid);
new DisableMenu[MAX_PLAYERS];
public DisMenu(playerid)
{
DisableMenu[playerid] = 0;
return 1;
}
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}