dini & dudb - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dini & dudb (
/showthread.php?tid=233015)
dini & dudb -
xir - 28.02.2011
how can I make lines like these to dini
pawn Код:
GivePlayerM4(playerid,udb_UserInt(PlayerName(playerid),"M4")-GetPlayerM4(playerid));
GivePlayerAK(playerid,udb_UserInt(PlayerName(playerid),"AK47")-GetPlayerAK(playerid));
Re: dini & dudb -
Mean - 28.02.2011
What do you mean, it would give an M4 that player already has?
You have explained
nothing.
Re: dini & dudb -
xir - 28.02.2011
oh sorry for not explaning..
I want to give the M4 a player already has, ive put it under the dialog where it checks the player account exist
Re: dini & dudb -
xir - 01.03.2011
bump..
stocks
pawn Код:
new M4[MAX_PLAYERS];
stock GivePlayerM4(playerid, gun)
{
M4[playerid] = M4[playerid] + gun;
return M4[playerid];
}
stock GetPlayerM4(playerid)
{
return M4[playerid];
}
Re: dini & dudb -
xir - 02.03.2011
bump
Re: dini & dudb -
Cameltoe - 02.03.2011
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 weaponnew Weapon
[MAX_PLAYERS
];
// Gives the player an weaponstock GivePlayerGun
(playerid, GunID
){ Weapon
[playerid
] = GunID;
}// Gives the player an M4 stock GivePlayerM4
(playerid
){ GivePlayerGun
(playerid, M4
);
}