03.10.2014, 14:05
Hey, creating a weapon equipment system so for a player to be able to get weapons, he must go to a certain point (Marina docks) and type /exportequipment. When the player types this command, a dialog opens and they can choose between legal and illegal guns... Once they make their choice, they click on the gun in the dialog and it sets the player as "having weapon equipment on them" (PlayerStats[playerid][HasWeaponEquipment] = 1). The player then has to go to an gun store and type /assembleweapon and it checks if the player has weapon equipment (PlayerStats[playerid][HasWeaponEquipment] = 1) and if they do, it gives them the gun they clicked on earlier at the docks. My problem is, how will I check what weapon the player chose at the docks?
Example:
at the ammunation store when the player has the equipmen
Please give me a hand, thank you!
Example:
at the ammunation store when the player has the equipmen
pawn Код:
cmd:assembleweapon(playerid, params[])
{
if(PlayerStat[playerid][HasWeaponEquipment] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, blah blah blah))
{
// what will I do here? I'm not sure how to give them the weapon they chose earlier
PlayerStat[playerid][HasWeaponEquipment] = 1;
}
etc