22.08.2011, 19:18
pawn Code:
if(pickupid == iSherrifsLockers)
{
if(JustPicked[playerid] == 0)
{
if(IsASherrif(playerid))
{
ShowPlayerDialog(playerid, DIALOG_SHERRIFLOCKERS, DIALOG_STYLE_LIST, "Sherrifs Lockers","Sherrif Duty\nWeaponary\nChange Uniform","Select","Cancel");
}
else
{
SendClientMessage(playerid, COLOUR_YELLOW, "* You are not a GroomLake Sherrif!");
return 1;
}
JustPicked[playerid] = 1;
SetTimerEx("Pickable", 5000, 1, "d", playerid);
}
return 1;
}
/////////////////////////////////////
public Pickable(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 3, pickupx, pickupy, pickupz))
{
JustPicked[playerid] = 0;
KillTimer(Pickable);
}
return 1;
}