So I've tried to make a code in order to see player's color, for example, if a player is in a faction and has a different name color, i could see what that color is.
Here's the code:
{$CLEO .cs}
thread "PlayerColor"
0000:
repeat
wait 0
until SAMP.Available()
0B34: "playercolor"...
Well... The first piece of code doesn't exactly tell me what the text is... It just says "textdraw with id <texdraw id> contains text"
The second one just doesn't tell me what I want to know... Do you have any other way you could help me?
So I tried to make a script in which when the following is been said, it would say the next things in "" but it doesn't work... Can anyone help me please?
{$CLEO .cs}
thread "Auto-Clicker"
0000:
repeat
wait 0
until SAMP.Available()
while true
wait 0
SAMP.GetChatString(1@...
Hi! So I've been questioning this to myself for a long time and looked at some examples of codes which used TXD ID. I can't figure it out how to get the TXD ID from the screen... if you know what i mean.. The server I currently play on has a HUD when you enter the car, which tell you the speed...
what is the "local player spawned" meant to be as a code? I'm guessing the "do stucc" is the rest of the script from SAMP.GetChatString(1@,2@,3@,4@,5@). Can you explain in a bit more detail please?
So I tried to make a script in which when the following is been said, it would say the next things in "" but it doesn't work... Can anyone help me please?
{$CLEO .cs}
thread "Auto-Clicker"
0000:
repeat
wait 0
until SAMP.Available()
while true
wait 0
SAMP.GetChatString(1@...
Nevermind…. I messed up in the variables 0.0
I accidently put the variable with the id of the player from the .ini file as the amount instead of the actual amount...… I'm stupid :)) sorry
So... The problem is... If I put $2000 in the dialog were it says "Please insert the amount of money you'd like to transfer to X", after you insert the amount, it only says $20 instead of $2000...
So... I've tried this piece of code out and see if it works... It certainly doesn't work as I would expect it to..
Code:
if SAMP.DialogRespond(830, 20@, 0, 25@)
then
if 20@ == 1
then
0C1A: 26@ = atoi 25@
if SAMP.IsPlayerConnected(26@)
then...
if SAMP.DialogRespond(830, 20@, 0, 25@)
then
if 20@ == 1
then
0C1A: 26@ = atoi 25@
0AF1: write_int 26@ to_ini_file "cleo\ServerCMD.ini" section "Bank" key "idtransfer"
if SAMP.IsPlayerConnected(19@)
then
0B36...
Hey. So ive tried to make a new script or something that i'd be able to use in a project i'm working on even though i'm not sure how to solve this.
So here's the script:
if SAMP.DialogRespond(830, 20@, 0, 25@)
then
if 20@ == 1
then
0C1A: 26@ = atoi 25@...
Well, really, is meant to write the input from a dialog to a ini file. It certainly doesn't but a friend of mine told me im supposed to use alloc for the variable, even tho he didn't really explain how many bytes I need, or I just didn't understand properly.
Hi! So I've tried to make this automatic ish thing that would eventually set a frequency you've input by using /freqno or if you type /freq off it'd turn it off but when i type /freq on or /freq off it crashes. Can this be solved??
1. Name of the mod (if the mod doesn't exist, you don't have to tell one): It doesn't have one
2. Where you saw it (not the server, we mean if you saw any videos/screenshots about it or not): I thought of it myself
3. What do you want (the most important part, explain this carefully): So what I...
Hi! I've tried to make a script in which when I enter a vehicle of type "Bike" it types /puthelmet automatic BUT if I go from a NRG-500 to a normal Bike, it says an error, as i'd be in a car. Anyone knows how to improve this script? Thanks
0AF0: 2@ = get_int_from_ini_file "cleo\ServerCMD.ini"...
I tried to make a long dialog in which you can have several choices but certain this script is right because as I try to join the game, it shows a lot of errors in chat and then it crashes. What's wrong with the script?
{$CLEO .cs}
thread "CivilCMD"
0000:
repeat
wait 0
until...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.