18.04.2012, 20:47
I have this piece of script
i normally had this in my test gamemode and it worked fine. now i moved everything of this custom weapon buy thing into a filterscript and everything seems to be working . except, when i go in the custom ammu nation, and i walk into the weapon and I press ALT (the key to buy) it doesn't do anything. can someone help me please?
pawn Код:
if(pickupid == knife)
{
weapon[playerid] = 4;
weaponcost[playerid] = 750;
ammo2[playerid] = 1;
TextDrawShowForPlayer(playerid, background);
#if defined WALK
TextDrawSetString(text2, "Use 'ALT' to buy. Cost $750.");
#else
TextDrawSetString(text2, "Use 'ALT' to buy. Cost $750.");
#endif
TextDrawShowForPlayer(playerid, text2);
wpicked[playerid] = 1;
SetTimerEx("HideText", 2000, false, "d", playerid);
}