16.02.2012, 15:43
Hi all!
So, I had the idea instead of givin' the player killing an enemy just money, giving him pickups! That means:
Player "X" killed player "Y", so when "Y" is dead, there should be a pickup near him (money), which the killer can pick up then! I don't know what to do, because there is a position needed! Do I have to do it like that?
Also, I want that when a player picks that money up, he should get an random amount between 100 and 1000 dollar!
So, I had the idea instead of givin' the player killing an enemy just money, giving him pickups! That means:
Player "X" killed player "Y", so when "Y" is dead, there should be a pickup near him (money), which the killer can pick up then! I don't know what to do, because there is a position needed! Do I have to do it like that?
PHP код:
OnGameModeInit() {
new Float:x, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
mypickup = CreatePickup(1239, 1, x, y, z, -1);