Random cash for givemoney - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Random cash for givemoney (
/showthread.php?tid=294466)
Random cash for givemoney -
BloodGuy - 01.11.2011
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?
Re: Random cash for givemoney -
Edvin - 01.11.2011
Delete3DTextLabel(
death3d[playerid]);
Do you use that 3D Text's name what do you want to disappear?
Re: Random cash for givemoney -
ikkentim - 01.11.2011
Use
new Text3D:dead3d[MAX_PLAYERS];
instead of
new dead3d[MAX_PLAYERS];
Re: Random cash for givemoney -
BloodGuy - 02.11.2011
I already did that. Shouldnt be the problem

Suggestions?