Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,511
» Latest member: snaptrap
» Forum threads: 2,233
» Forum posts: 12,034

Full Statistics

Online Users
There are currently 754 online users.
» 0 Member(s) | 752 Guest(s)
Bing, Google

Latest Threads
I humor myself
Forum: Programming
Last Post: nami16504
9 hours ago
» Replies: 5
» Views: 8,042
Command does not work in-...
Forum: Pawn Scripting
Last Post: PANZEHIR_
2024-11-23, 06:36 PM
» Replies: 0
» Views: 43
White Screen
Forum: Support
Last Post: Phat202146_real
2024-11-21, 02:50 PM
» Replies: 0
» Views: 42
I get error 021 using y_h...
Forum: Pawn Scripting
Last Post: daniscript18
2024-11-18, 11:34 PM
» Replies: 0
» Views: 61
Il reste des français sur...
Forum: French/Fran?ais
Last Post: tysanio
2024-11-18, 05:39 AM
» Replies: 2
» Views: 469
Object creation issues
Forum: Programming
Last Post: K1271
2024-11-15, 11:51 PM
» Replies: 0
» Views: 56
Is the SAMP Hosting the s...
Forum: General Discussions
Last Post: OperaGX
2024-11-14, 09:33 PM
» Replies: 0
» Views: 75
Run time error 19: "File ...
Forum: Pawn Scripting
Last Post: Rexey
2024-11-14, 03:50 AM
» Replies: 0
» Views: 65
How to Compile Your Gamem...
Forum: Tutorials
Last Post: thelante
2024-11-13, 08:50 AM
» Replies: 3
» Views: 475
Modeller wanted
Forum: Development Updates
Last Post: acc.gangbeni
2024-11-11, 05:10 PM
» Replies: 9
» Views: 16,508

 
  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 
FloatstartXFloatstartYFloatstartZFloatnxFloatnyFloatnzFloatrxFloatryFloatrzchance random(2), boolpositivecoord;

?? ?
FCNPC_GetPosition(npcidstartXstartYstartZ);

?? ?
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(npcidnxnynz);

?? ?
CA_FindZ_For2DCoord(startXstartYstartZ);

?? ?
CA_FindZ_For2DCoord(nxnynz);



?? ?if(
CA_RayCastLine(startXstartYstartZnxnynzrxryrz) == 0){

?? ??? ?
FCNPC_GoTo(npcidstartXstartYstartZFCNPC_MOVE_TYPE_WALKFCNPC_MOVE_SPEED_AUTOtrue);

?? ??? ?
FCNPC_ApplyAnimation(npcid"PED""WALK_DRUNK"4.111100);

?? ?}



?? ?return;





Follow the player:



PHP Code:
if(IsPlayerInRangeOfPoint(npcid,45.0,xa,ya,za) && CA_RayCastLine(xayazanxnynzrxryrz) == 0){ // if is near player and there's no object between them

??? FCNPC_GoTo(npcid,xa,ya,za,MOVE_TYPE_RUN,0.4true);

? ? 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)

[Image: GMbd0Ik.png]



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.












[Image: GuIG4pA.jpg]



[Image: 5DEtB4Z.jpg]



[Image: 98J3iq7.jpg]



[Image: LdInxo7.jpg]



[Image: gBMmVEO.jpg]



[Image: aynl6sd.jpg]



[Image: nSgOQs0.jpg]



[Image: MkO2Lhg.jpg]



[Image: HKN74hQ.jpg]



[Image: j9xq6Bf.jpg]



[Image: MCK4Mkh.jpg]


Question YSI Logic user-incomprehension and usage
Posted by: hastlaking - 2019-12-17, 04:17 PM - Forum: Pawn Scripting - Replies (3)

Hello Community, i have this odd incomprehension with the YSI Libraries and most-partial of the documentation is missing or not yet implemented (explanation) into github repository i might say.


  O.G. hood mappings with custom models at the Streetz of Los Santos
Posted by: dignity - 2019-12-17, 03:35 PM - Forum: Videos and Screenshots - Replies (1)

All mappings below are 95% custom models. Every area of the city has enex maps added to them.





[Image: MJ6Qs1e.png]

[Image: ueprI8Y.png]



[Image: UnibmJ2.png]

[Image: 0dhXX5Q.png]



[Image: 9TE1zGK.png]

[Image: t0TEFwh.png]

[Image: PqnL0We.png]



[Image: zYDwzHL.png]

[Image: SZ09Vsn.png]

[Image: rWRkNti.png]


  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?


Information 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 ??? ??????????? ???, ? ???????? ?? ?????? ??????????, ??????? ???????!)


  [MAP] Renovated motel room. (No textures)
Posted by: pokerface - 2019-12-11, 05:01 PM - Forum: Videos and Screenshots - Replies (3)

/UPDATING


  SAMP-ColorPicker
Posted by: Tama - 2019-12-11, 11:49 AM - Forum: Releases - No Replies

[Image: D04SG32E_o.png]

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:
http://imgbox.com/KWGbAzzo
http://imgbox.com/BoVMCKa6
http://imgbox.com/o2MuR9Bc


If you want to use, you can download here below:
Github Release

And if you want to contribute, you can click the link below:
Github Projects