| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 7,817
» Latest member: Fefe
» Forum threads: 2,367
» Forum posts: 12,263
Full Statistics
|
| Online Users |
There are currently 774 online users. » 0 Member(s) | 771 Guest(s) Baidu, Bing, Google
|
| Latest Threads |
Layanan cs Floa
Forum: General Discussions
Last Post: bratva
Yesterday, 01:10 PM
» Replies: 5
» Views: 60
|
[ZA] ZOMBIE APOCALYPSE. ...
Forum: Advertisements
Last Post: AlCapone
2025-12-30, 12:02 PM
» Replies: 0
» Views: 34
|
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-12-30, 08:46 AM
» Replies: 2
» Views: 261
|
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-29, 09:47 PM
» Replies: 8
» Views: 552
|
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: NoxxeR
2025-12-29, 08:30 PM
» Replies: 11
» Views: 707
|
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-29, 12:49 PM
» Replies: 8
» Views: 897
|
Recompiling for x86_64 or...
Forum: General Discussions
Last Post: moayedboukhachem179
2025-12-28, 02:11 PM
» Replies: 1
» Views: 134
|
NoxxeR is back, with vide...
Forum: Videos and Screenshots
Last Post: NoxxeR
2025-12-27, 07:18 PM
» Replies: 1
» Views: 91
|
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: Pevenaider
2025-12-25, 04:58 PM
» Replies: 9
» Views: 17,815
|
RolePlay Gamemode [WIP]
Forum: Gamemodes
Last Post: su109551
2025-12-24, 10:48 PM
» Replies: 5
» Views: 239
|
|
|
| Vehicle Bugger |
|
Posted by: Trox - 2019-12-26, 02:23 PM - Forum: Pawn Scripting
- No Replies
|
 |
Helu.
Does anyone have any idea how can i block this cheat?
Ik it uses unoccupied vehicles and kinda teleport them but how can i check it?
I tried to check player velocity , position , seat , vehicle pos, vehicle speed?.. nothing works.
|
|
|
|
| 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.
|
|
|
|
|