Help need script for R4 server

SamThapa

Active member
Joined
Jan 22, 2018
Messages
78
Reaction score
1
1: 0F17: Get_Model_Name 1@ _PointerTo 2@ this opcode from cleoplus
0ADB: 1@V = Car_Model 0@ Name

both opcodes don't work in samp

2: check if player pause (afk)
 

SamThapa

Active member
Joined
Jan 22, 2018
Messages
78
Reaction score
1
2: check if player pause (afk)
this here for players not mine other player and i need it as actor handle not by id idk how to use ids in R4 servers want to see all player if anyone afk
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
2: check if player pause (afk)
this here for players not mine other player and i need it as actor handle not by id idk how to use ids in R4 servers want to see all player if anyone afk
Sounds like fps drop, without SAMPFUNC using loop for all players.
 

SamThapa

Active member
Joined
Jan 22, 2018
Messages
78
Reaction score
1
oh ok then ill pass thanks for reply and i didn't knew that

hey @Parazitas is it possible to use gtaweap3.ttf font for using weapon icon ? i mean any script to use weapon font samp use it idk how to get it done
 

SamThapa

Active member
Joined
Jan 22, 2018
Messages
78
Reaction score
1
there is many problem with R4 server cant use sumpfuncs and cant detect if player taking damage i think ill stop playing samp only killing doing dm and wondering here and there its no fun at all wanted to make some mods for fun not killing stuff but like how much damage player taking and get there nicknames and see weapon they shoot how much damage server allow only that but without sampfunc its not possible
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
there is many problem with R4 server cant use sumpfuncs and cant detect if player taking damage i think ill stop playing samp only killing doing dm and wondering here and there its no fun at all wanted to make some mods for fun not killing stuff but like how much damage player taking and get there nicknames and see weapon they shoot how much damage server allow only that but without sampfunc its not possible
Some things can be made without SAMPFUNC if you know how to xD
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania






Etc....
You make your own limits ...
 

SamThapa

Active member
Joined
Jan 22, 2018
Messages
78
Reaction score
1
lets say i want this
:SAMPGetLocalPlayerDamageType
{
0.3.7 R4-2
0AB1: @SAMPGetLocalPlayerDamageType 0 _Returned: DamageType 0@
}
IF 0AA2: 1@ = "samp.dll"
THEN
1@ += 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x104 // SAMP_UNKNOW_OFFSET
0A8D: 1@ readMem 1@ sz 2 vp 0
1@ += 0x40 // SAMP_LOCAL_PLAYER_STRUCT_OFFSET
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x760 // SAMP_LOCAL_PLAYER_DAMAGE_TYPE_OFFSET
0A8D: 1@ readMem 1@ sz 4 vp 0
IF NOT 1@ == 255 // NOT DAMAGED
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 1 1@

but not me (my char in samp) but anyone who get damage with weapon how to do that ? plz help
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
lets say i want this
:SAMPGetLocalPlayerDamageType
{
0.3.7 R4-2
0AB1: @SAMPGetLocalPlayerDamageType 0 _Returned: DamageType 0@
}
IF 0AA2: 1@ = "samp.dll"
THEN
1@ += 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 1@ = readmem 1@ sz 4 vp 0
1@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x104 // SAMP_UNKNOW_OFFSET
0A8D: 1@ readMem 1@ sz 2 vp 0
1@ += 0x40 // SAMP_LOCAL_PLAYER_STRUCT_OFFSET
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x760 // SAMP_LOCAL_PLAYER_DAMAGE_TYPE_OFFSET
0A8D: 1@ readMem 1@ sz 4 vp 0
IF NOT 1@ == 255 // NOT DAMAGED
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 1 1@

but not me (my char in samp) but anyone who get damage with weapon how to do that ? plz help
So basically you aiming to make damage informer , do you wanna it in chat?
 

SamThapa

Active member
Joined
Jan 22, 2018
Messages
78
Reaction score
1
HostName: UIF - United Islands Freeroam
Address: play.uifserver.net:7776
Players: 204 / 1000
Ping: 174
Mode: UIF Freeroam
Language: English


i am sorry for delay but i was waiting for you reply i didn't see any notification
 

SamThapa

Active member
Joined
Jan 22, 2018
Messages
78
Reaction score
1
hey @Parazitas is it possible to write admins name if any admins online ? we check in command: /admins in menu it shows how many admins online and i want to it should write their names automatic in admins.ini file
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
hey @Parazitas is it possible to write admins name if any admins online ? we check in command: /admins in menu it shows how many admins online and i want to it should write their names automatic in admins.ini file
This thing is called admin checker, there full of version for this cleo, lua etc...

Just google it, or search on ugbase
 

SamThapa

Active member
Joined
Jan 22, 2018
Messages
78
Reaction score
1
why i am searching admin check ? because in this server like 40+ admins are here and problem is all mods check from list it mean i have to write all admins name and they are some weird names like "]hua.-[lord." like that and its difficult to write their names please help i want script that is any online admin it should get their names and write in text so i can see their names
 
Top