Jump to content
GIGN Forum

Palidzet Ar Kodiem :)


Recommended Posts

gribetu lai kad uzraksta prevmap rada 3 mapes nevis 1 :(:)

#include <amxmodx>

public plugin_init()
{
    register_plugin("PrevMap", "1.0", "neuromancer")
    register_dictionary("prevmap.txt")
    register_clcmd("say prevmap", "sayPrevMap", 0, "- displays prevmap")
    
    new lmapn[32];
    get_localinfo("lmapn", lmapn, 31)
    set_localinfo("pmapn", lmapn)

    set_task(1.0, "setinfo")
}

public setinfo()
{
    new mapname[32]
    get_mapname(mapname, 31)
    set_localinfo("lmapn", mapname)
}

public sayPrevMap()
{
    new pmapn[32]
    get_localinfo("pmapn", pmapn, 31)
    if(equal(pmapn, ""))
    {
        client_print(0, print_chat, "%L", LANG_PLAYER, "NO_PREV_MAP")
    }
    else
    {
        client_print(0, print_chat, "%L: %s", LANG_PLAYER, "PREV_MAP", pmapn)
    }
}

ieprieks jau pateiksos ;)

Edited by Billabong
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...