04.01.2017, 01:56
If you keep on looking for tutorials to create the systems you want, you're probably never going to do something on your own. Instead, know how things work. Apply your logic and imagination to create such systems. Suppose you're creating a feature to pick pocket - you'd have to think of these:
1) The thief should be near a player to rob them. (I would suggest IsPlayerInRangeOfPoint for beginners but I'd create my own function to check if the thief behind and closer to the player).
2) The player should have some money to be robbed. (GetPlayerMoney > 0 )
3) (more as you could imagine).
Understand how variables and arrays work. You can look into the codes of other people to try and understand. Every beginners would start with inefficient methods but they keep improving as they get to know better logic. You don't have to be an expert mathematician to write better codes, it mainly requires your logical mind. Though, being an expert in math can help you very much!
https://sampforum.blast.hk/showthread.php?tid=318212 - Array tutorial.
PS : Whenever you post code, place it inside [CODE] tag.
[CODE]
script here
[/ CODE] (I placed a space to prevent it from functioning.)
1) The thief should be near a player to rob them. (I would suggest IsPlayerInRangeOfPoint for beginners but I'd create my own function to check if the thief behind and closer to the player).
2) The player should have some money to be robbed. (GetPlayerMoney > 0 )
3) (more as you could imagine).
Understand how variables and arrays work. You can look into the codes of other people to try and understand. Every beginners would start with inefficient methods but they keep improving as they get to know better logic. You don't have to be an expert mathematician to write better codes, it mainly requires your logical mind. Though, being an expert in math can help you very much!
https://sampforum.blast.hk/showthread.php?tid=318212 - Array tutorial.
PS : Whenever you post code, place it inside [CODE] tag.
[CODE]
script here
[/ CODE] (I placed a space to prevent it from functioning.)