SA-MP Forums Archive
Small Help Guys - 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: Small Help Guys (/showthread.php?tid=631032)



Small Help Guys - ommar8080 - 21.03.2017

Hi ^_^
i want know how to make 6 random for my textdraw
Fake: And True:
PHP код:
    Fake = TextDrawCreate(509.000000, 338.000000, "Fake: 1");
    
TextDrawBackgroundColor(Fake, 255);
    
TextDrawFont(Fake, 1);
    
TextDrawLetterSize(Fake, 0.210000, 1.100000);
    
TextDrawColor(Fake, -1);
    
TextDrawSetOutline(Fake, 1);
    
TextDrawSetProportional(Fake, 1);
    
TextDrawSetSelectable(Fake, 0);
    
True = TextDrawCreate(509.000000, 348.000000, "True: 1");
    
TextDrawBackgroundColor(True, 255);
    
TextDrawFont(True, 1);
    
TextDrawLetterSize(True, 0.210000, 1.100000);
    
TextDrawColor(True, -16776961);
    
TextDrawSetOutline(True, 1);
    
TextDrawSetProportional(True, 1);
    
TextDrawSetSelectable(True, 0); 
random from 6 for Fake And True
Every Take My pickups write random +1 in True Or Fake
like i take 1pickup = random fake or random true
i have 6pickups