22.02.2013, 02:51
any suggestion post here
=====================================
=====================================
#include <a_samp>
#include <mSelection>
new weplist = mS_INVALID_LISTID;
public OnFilterScriptInit()
{
weplist = LoadModelSelectionMenu("weapons.txt");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/weapons", true) == 0)
{
ShowModelSelectionMenu(playerid, weplist, "->Weapons<-");
return 1;
}
return 0;
}
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == weplist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Chosen a weapon.");
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled selection");
return 1;
}
return 1;
}