Random cash for givemoney
#1

how that work, i have now:

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == deathpickup123[playerid])
	{
		new Random = random(8001);
		new string[70];
	    Delete3DTextLabel(death3d[playerid]);
		GivePlayerMoney(playerid,Random);
		DestroyPickup(deathpickup123[playerid]);
    	format(string, sizeof(string), "$%d Money got from a death Player!", Random);
    	GameTextForPlayer(playerid, string, 3000, 4);
	    KillTimer(killtimer1);
		return 1;
	}
	return 1;
}
also, when you pickup the 3d label doesnt disappear, why?
Reply
#2

Delete3DTextLabel(death3d[playerid]);

Do you use that 3D Text's name what do you want to disappear?
Reply
#3

Use
new Text3D:dead3d[MAX_PLAYERS];
instead of
new dead3d[MAX_PLAYERS];
Reply
#4

I already did that. Shouldnt be the problem
Suggestions?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)