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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,257
» Latest member: 86betshop
» Forum threads: 2,379
» Forum posts: 12,293

Full Statistics

Online Users
There are currently 282 online users.
» 0 Member(s) | 279 Guest(s)
Yandex, Bing, Google

Latest Threads
Open.mp / SAMP Query
Forum: Releases
Last Post: laex
Yesterday, 04:07 AM
» Replies: 2
» Views: 50
some text appearing in my...
Forum: Support
Last Post: Sizy
2025-07-08, 07:33 AM
» Replies: 0
» Views: 17
Offensive-Core: TDM
Forum: Gamemodes
Last Post: NikitaFoxze
2025-07-08, 12:13 AM
» Replies: 3
» Views: 3,647
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
2025-07-06, 10:28 AM
» Replies: 0
» Views: 35
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
2025-07-05, 11:35 PM
» Replies: 0
» Views: 28
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
2025-07-05, 11:05 PM
» Replies: 2
» Views: 70
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 60
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,204
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 70
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 446

 
  IsDynamicActorStreamedIn always returns 0
Posted by: c4p - 2021-01-13, 03:26 PM - Forum: Pawn Scripting - Replies (2)

Hey. In my mod there is a system which creates shop actors if a player goes inside, and destroys them when everybody went out.
Or at least that's the goal. Creating the actor works fine, as the mod detects if the actor is already created and doesnt spawn it again, etc.
But if anybody leaves the shop and my custom function gets called, the shop actor gets deleted immediately, no matter if someone else got the actor streamed in.

My code:

Code:
DestroyShopActorIfUnstreamed(virtualworldid)
{
? ? if (!IsValidDynamicActor(shopactor[virtualworldid])) return 1;
for(new i = 0; i < MAX_PLAYERS  1; i)
? ? {
? ? ? ? if (IsDynamicActorStreamedIn(shopactor[virtualworldid], i))
? ? ? ? {
? ? ? ? ? ? print("streamed");
? ? ? ? ? ?break;
? ? ? ? }
? ? printf("shopactor %i deleted", virtualworldid);
? ? DestroyDynamicActor(shopactor[virtualworldid]);
? ? }
return 1;
}

I know i messed up something with the code


  Mysql
Posted by: Syxh0wN - 2021-01-13, 10:28 AM - Forum: Programming - Replies (1)

my server uses a lot of cpu because of mysql, is there any way for me to know which code is pulling so much cpu?


  APARTMENT 3C & ARTSTUDIO
Posted by: Name - 2021-01-13, 06:14 AM - Forum: Videos and Screenshots - Replies (6)

APARTMENT 3C & ARTSTUDIO INTERIORS

(both maps are from my old map collection, some of you probably saw these in the past)



Name: Apartment 3C

Map type: Interior

Author of map: MrName (me)

Number of objects: 300

Number of textures: 324

Removed SA objects: 0?

Custom objects: 0

Location of map: unknown

Map editor used: MSR's mapping system

About map: Reference for this map was taken from Vice City, for more info you can check Vice City's apartment 3c.

Screenshots:



[Image: qNNViRHl.jpg]

[Image: bcsFV2dl.jpg]

[Image: mDPB4fKl.jpg]

[Image: UUUr3tsl.jpg]

[Image: OfWWkP8l.jpg]

[Image: vd5xMlWl.jpg]

[Image: JwwXUizl.jpg]

[Image: 76Uewgfl.jpg]

[Image: RysMb7Ll.jpg]

[Image: 7SWRTdrl.jpg]

[Image: 0eAKkQPl.jpg]

[Image: DQ6FOrpl.jpg]

[Image: xuZ4ob9l.jpg]

[Image: eXNLIuWl.jpg]

[Image: hnL9btol.jpg]


  Animation to speak
Posted by: Boxi - 2021-01-12, 09:45 PM - Forum: Pawn Scripting - Replies (1)

Hello, I want to make a command that when using it the character makes the typical talking animation. Do you know what the name of that animation is? thanks!


  Nice and easy way to script a countdown?
Posted by: M.D. - 2021-01-12, 08:45 PM - Forum: Pawn Scripting - Replies (4)

What do you reckon that would be an efficient method of implementing a countdown (a few minutes long), including both a timer and an updating TextDraw or GameText?



Afterwards, how would you be able to script something to happen at the end of it?



Cheers!


  Using MySQL R41-4
Posted by: RhaegarX - 2021-01-12, 04:47 PM - Forum: Pawn Scripting - Replies (4)

Hello guys, I programmed some samp servers a long time ago and recently I started programming again just for fun.

However, I always programmed using a rescue system in '.ini' and I am creating a gamemode in mysql and I would like to clarify some doubts on the subject.



1 - Is it recommended and necessary to use mysql in the samp? What are its advantages over '.ini' rescue systems?



2 - In relation to saving data from the server and players in mysql, it is interesting to save the data of the player only when the player leaves the server, or to save this data for each operation that the player does (example: the player buys an item and then the game already saves that data)



Thanks for the attention of those who read this topic xD!



Sorry for my bad English, I used google translator for some things.


  [HELP] Fully eliminating weapon when no ammo left
Posted by: Smyle - 2021-01-11, 08:54 PM - Forum: Pawn Scripting - Replies (3)

Hey.



So, since a while ago i was having an issue when finishing using a weapon (when i shot the last bullet left). As we all know, when we're using GetPlayerWeaponData, old weapons with no ammo left are still returned and basically that fucks everything up if you're checking if a player already has that specific weapon by using the GetPlayerWeaponData function.



So my question is: Is there any way we can like reset or eliminate that weapon when whe shot the last bullet for the last time? As i said, the weapon vanishes, but it still shows up on GetPlayerWeaponData.



I already tried to remove it when shooting and checking if it was the last bullet using OnPlayerWeaponShot, but i had no success on it.



Please, help!? 䑃 to those who?can give me a good answer.



Thank yall.


  fmat_return
Posted by: Syxh0wN - 2021-01-11, 08:17 PM - Forum: Programming - No Replies

Hello, I need some help, I need to take 'va_format' without redoing all the codes, can someone help me?

PHP Code:
stock fmat_return(const fmat[], va_args<>)
{
    new 
str[300];
    
va_format(strsizeof(str), fmatva_start<1>);
    return 
str;


  Problem. Discord Connector
Posted by: Dex - 2021-01-11, 06:59 PM - Forum: Pawn Scripting - No Replies

Solved


  Samp Forum
Posted by: Jaua - 2021-01-10, 06:47 PM - Forum: Chat - Replies (2)

Excuse me guys its possible to get into?samp forum? i tried to enter with machinewayback and i had no luck.