11.05.2013, 20:04
Can I simplify dat for you?
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#include <sscanf2>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Weapon spawner BY BlackHorse");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
CMD:w(playerid, params[])
{
new weapid;
if(sscanf(params, "d", weapid)) return SendClientMessage(playerid, -1, "/w [id] ");
else GivePlayerWeapon(playerid, weapid, 355);
return 1;
}