29.07.2018, 12:58
Use this to detect keys;
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Use this to find out what the key for 'F' is;
https://sampwiki.blast.hk/wiki/Keys
Use this to find out a player's animation index;
https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex
Use this to find out if the player is in range of a point;
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Use an enum that holds info of all the vending machines;
https://sampforum.blast.hk/showthread.php?tid=318307 This is a good tutorial about enums.
Use this to get the player's money;
https://sampwiki.blast.hk/wiki/GetPlayerMoney
Use this to set the player's money;
https://sampwiki.blast.hk/wiki/GivePlayerMoney
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Use this to find out what the key for 'F' is;
https://sampwiki.blast.hk/wiki/Keys
Use this to find out a player's animation index;
https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex
Use this to find out if the player is in range of a point;
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Use an enum that holds info of all the vending machines;
https://sampforum.blast.hk/showthread.php?tid=318307 This is a good tutorial about enums.
Use this to get the player's money;
https://sampwiki.blast.hk/wiki/GetPlayerMoney
Use this to set the player's money;
https://sampwiki.blast.hk/wiki/GivePlayerMoney