Code: Select all
public menu_handler ( id, menu, item ) {
if( item == MENU_EXIT )
{
return 1
}
new data[6], szName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);
switch(key)
{
case 1:
{
if(!g_bHpAdded[id])
{
set_user_health( id, 255 )
set_user_armor( id, 255 )
g_bHpAdded[id] = true
ColorChat( id, GREEN, "[Furien Vip]^x01 Ai primit 255HP & 255AP!" )
limita[id] += 1
}
else
{
ColorChat( id, GREEN, "[Furien Vip]^x01 Ai deja 255Hp si 255 AP!" )
}
case 2:
{
if(!g_bTeleport[id])
{
g_bTeleport[ id ] = true
client_cmd( id, "bind v ^"+teleport^"" )
ColorChat( id, GREEN, "[Furien Vip]^x01 Ai primit Teleport!" )
ColorChat( id, GREEN, "[Furien Vip]^x01 %s Apasa tasta V pentru a folosi teloprtul!", szTag )
limita[id] += 1
}
else
{
ColorChat( id, GREEN, "[Furien Vip]^x01 You already have the teleport!" )
}
case 3:
{
if(!g_bGodMode[id])
{
g_bGodMode[ id ] = true
set_pev(id,pev_takedamage,DAMAGE_NO)
set_task(20.0,"RemoveGodM",id+TASK_REMOVEGODMODE)
ColorChat( id, GREEN, "[Furien Vip]^x01 Ai primit GodMode!" )
limita[id] += 1
}
else
{
ColorChat( id, GREEN, "[Furien Vip]^x01 You already have GodMode!" )
}
Code: Select all
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Warning: Loose indentation on line 341
Error: Invalid statement; not in switch on line 341
Warning: Expression has no effect on line 341
Error: Expected token: ";", but found ":" on line 341
Error: Invalid expression, assumed zero on line 341
Error: Too many error messages on one line on line 341
Compilation aborted.
4 Errors.