02.03.2011, 12:25
I got no clue how dudb works at all, but this should probably get you going.
pawn Код:
// Define the weapons here : ( The list can be found at : https://sampwiki.blast.hk/wiki/Weapons )
#define AK47 30
#define M4 31
// Stores the current weapon
new Weapon[MAX_PLAYERS];
// Gives the player an weapon
stock GivePlayerGun(playerid, GunID)
{
Weapon[playerid] = GunID;
}
// Gives the player an M4
stock GivePlayerM4(playerid)
{
GivePlayerGun(playerid, M4);
}