| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 7,834
» Latest member: grdxhgguh
» Forum threads: 2,372
» Forum posts: 12,269
Full Statistics
|
| Online Users |
There are currently 358 online users. » 0 Member(s) | 355 Guest(s) Google, Bing, Yandex
|
| Latest Threads |
The status of the INPC SD...
Forum: Support
Last Post: DLCode
8 hours ago
» Replies: 0
» Views: 17
|
SAMP server trailer
Forum: Videos and Screenshots
Last Post: pmemorex2016
Yesterday, 02:34 PM
» Replies: 0
» Views: 22
|
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: DevonH
2026-01-03, 04:04 AM
» Replies: 9
» Views: 1,003
|
I recommend Xiaomi Rednot...
Forum: Tech
Last Post: NoxxeR
2026-01-03, 01:31 AM
» Replies: 0
» Views: 75
|
🌆 Final City RPG – Englis...
Forum: Advertisements
Last Post: Beanny
2026-01-02, 02:46 PM
» Replies: 0
» Views: 66
|
OLD GAMEMODE 0.3DL
Forum: Gamemodes
Last Post: su109551
2026-01-01, 06:59 PM
» Replies: 0
» Views: 103
|
Layanan cs Floa
Forum: General Discussions
Last Post: bratva
2025-12-31, 01:10 PM
» Replies: 5
» Views: 172
|
[ZA] ZOMBIE APOCALYPSE. ...
Forum: Advertisements
Last Post: AlCapone
2025-12-30, 12:02 PM
» Replies: 0
» Views: 82
|
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-12-30, 08:46 AM
» Replies: 2
» Views: 313
|
After School Roleplay - L...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-29, 09:47 PM
» Replies: 8
» Views: 634
|
|
|
| Pathfinding with ColAndreas and FCNPC |
|
Posted by: [SF]kAn3 - 2019-12-23, 04:41 PM - Forum: Pawn Scripting
- No Replies
|
 |
I'm trying both to make npcs move around randomly and follow a player, yet there are 2 main problems.
1 - While randomly moving, npcs sometimes fall a bit under the ground surface, and then they start going up and down the surface real fast, making severe eye damage if you look at them
2 - When following someone, they will climb any object that is on their way, regardless of its height. For example, if there's a tree between me and the npc, he won't avoid the tree so you will see it going from the ground to the top of the tree while walking. Same thing happens for any other object.
Randomly move around:
PHP Code: GoRandom(npcid){
?? ?if(!FCNPC_IsValid(npcid)){
?? ??? ?printf("[DEBUG] Invalid NPC: %d", npcid);
?? ??? ?return;
?? ?}
??? if(FCNPC_IsMoving(npcid)){
?? ??? ?return;
?? ?}
?? ?if(FCNPC_IsDead(npcid)){
?? ??? ?return;
?? ?}
? ? if(FCNPC_IsAttacking(npcid)){
? ? ?? return;
? ? }
??? new Float: startX, Float: startY, Float: startZ, Float: nx, Float: ny, Float: nz, Float: rx, Float: ry, Float: rz, chance = random(2), bool: positivecoord;
?? ?FCNPC_GetPosition(npcid, startX, startY, startZ);
?? ?positivecoord = (chance == 0) ? true : false;
?? ?startX = (positivecoord == true) ? startX random(20) 15 : startX - random(20) 15;
?? ?startY = (positivecoord == true) ? startY random(20) 15 : startY - random(20) 15;
?? ?FCNPC_GetPosition(npcid, nx, ny, nz);
?? ?CA_FindZ_For2DCoord(startX, startY, startZ);
?? ?CA_FindZ_For2DCoord(nx, ny, nz);
?? ?if(CA_RayCastLine(startX, startY, startZ, nx, ny, nz, rx, ry, rz) == 0){
?? ??? ?FCNPC_GoTo(npcid, startX, startY, startZ, FCNPC_MOVE_TYPE_WALK, FCNPC_MOVE_SPEED_AUTO, true);
?? ??? ?FCNPC_ApplyAnimation(npcid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 0, 0);
?? ?}
?? ?return;
}
Follow the player:
PHP Code: if(IsPlayerInRangeOfPoint(npcid,45.0,xa,ya,za) && CA_RayCastLine(xa, ya, za, nx, ny, nz, rx, ry, rz) == 0){ // if is near player and there's no object between them
??? FCNPC_GoTo(npcid,xa,ya,za,MOVE_TYPE_RUN,0.4, true);
? ? return 1;
}
Am I doing it wrong, there already is a pathfinding method in FCNPC or CA or anything similar? Also I found Dijkstra (https://pastebin.com/RwQZ1PWy) is it obsolete?
Any help will be appreciated.
|
|
|
|
| [MAP] Mall exterior |
|
Posted by: Stefhan - 2019-12-20, 04:14 PM - Forum: Videos and Screenshots
- No Replies
|
 |
I removed the original mall and replaced it with several stores.
You Tool, a home depot,
Davis Mall, the new mall,
IDEA, basically IKEA,
Sumo, an electronics store,
A parking garage,
Some random minor stores
Video shows both daylight and nighttime. Interiors haven't been mapped yet.
Please share your critique.
[Video: https://www.youtube.com/watch?v=WSrzm7byB1w]
|
|
|
|
| [MAP] SKYRIM TAVERN in SA-MP! |
|
Posted by: Twixxer - 2019-12-18, 02:15 PM - Forum: Videos and Screenshots
- Replies (4)
|
 |
So I recreated The Sleeping Giant tavern/inn from The Elder Scrolls: Skyrim, in SAMP. I had made a similar map years ago, but I felt like it needed a fresh re-do. This is the result. No mods/custom objects. Around 800 objects.
|
|
|
|
| mysql - invalid row index '0' |
|
Posted by: Demo - 2019-12-13, 07:34 PM - Forum: Pawn Scripting
- Replies (3)
|
 |
Hello everyone,
i created a similar mysql login/register system now like this example here:?https://github.com/pBlueG/SA-MP-MySQL/bl...-cache.pwn
The only thing i changed is: i dont assign default values after registering server side. I want to get them from db, since i added it there as defaults if a new player registers an account.
How i did this is: if we assume the functions are all the same as the example above, i called? Code: AssignPlayerData(playerid)
in Code: public OnPlayerRegister(playerid)
.
Login works fine, but if trying to "AssignPlayerData" after registration i get this error for every data i want to to get.
Code: [plugins/mysql] cache_get_value_name_int: invalid row index '0' (number of rows: '0')
If im thinking right, this is because the entire query to get data is in OnPlayerConnect, and if account does not exists we have no row for that player. So do i need to do the same query again after registering the player and before "AssignPlayerData" ? Is this the right way, or is there a cleaner way?
|
|
|
|
OpenMP is released? |
|
Posted by: Salik - 2019-12-13, 09:30 AM - Forum: Questions and Suggestions
- Replies (2)
|
 |
Hello forum users this community, like would to know more details about designing, after all like stated that in late year should be released the first release OpenMP, like would to know on what stage project, is done whether or slightly you rest, on what percentage project, and when wait the first release, many simply clear the that Kalcor already throws all, and like would more information, in advance thank you!)
^translated with yandex translator.^
???????????? ????? ????? ??????? ??????????, ???????? ?? ?????? ?????? ???????????? ? ??????????, ???? ????? ?????????? ??? ? ????? ???? ?????? ??????????? ?????? ????? OpenMP, ???????? ?? ?????? ?? ????? ?????? ??????, ???????? ?? ??? ???? ?????????, ?? ????? ???????? ??????, ? ????? ????? ?????? ?????, ?????? ?????? ???? ?? ??? Kalcor ??? ??????????? ???, ? ???????? ?? ?????? ??????????, ??????? ???????!)
|
|
|
|
| SAMP-ColorPicker |
|
Posted by: Tama - 2019-12-11, 11:49 AM - Forum: Releases
- No Replies
|
 |
ColorPicker is appication that helps you choosing the color in 2 different method.
I've made this easier than other version of ColorPicker, all you can do is to double click the app for selecting some color that you want to.
Features:
- Auto copy your selected color?to clipboard..
- Have 2 option to choose either Hex without alpha or Hex with alpha
Screenshots:
|
|
|
|
| [FS] Snow Plowing Vehicles |
|
Posted by: InYourDreams - 2019-12-04, 10:00 PM - Forum: Videos and Screenshots
- Replies (2)
|
 |
![[Image: SpedBak.png]](https://i.imgur.com/SpedBak.png)
Hello guys! Today im presenting to you a simple script. Its about plowing vehicles in samp. I added snow plow to few cars:
- Dune
- Yosemite
- Bobcat
- Sadler
- Rancher
I know this is really simple Filescript but i also know that there is people that dont know how to add simple object and attach it to vehicle. You can use it for your servers etc.
You can see how that looks in my video on youtube channel. Just click on video link below.
VIDEO LINK: https://youtu.be/vWCISlhJQxI
DOWNLOAD LINK: https://pastebin.com/whZj2XJs
If you wanna to see more cars with snow plow, leave a comment here and ill make sure to add snow plow to them and to make version 2 of this vehicles, also i tried to add samp particle effects on both sides of snow plow to look even more realistic like vehicle is really plowing a snow, maybe i will add that in version 2 also. Hope you will like my video and subscribe for more stuff like this. Thank you!
|
|
|
|
|