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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,701
» Latest member: max_Kappo
» Forum threads: 2,499
» Forum posts: 12,573

Full Statistics

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

Latest Threads
[BETA] Renaissance DM — O...
Forum: Advertisements
Last Post: DrVandersexxx
8 hours ago
» Replies: 2
» Views: 358
Unban
Forum: Chat
Last Post: edgy
Today, 09:36 AM
» Replies: 8
» Views: 952
Pedestrians
Forum: Plugins
Last Post: Yuu
Yesterday, 09:01 AM
» Replies: 2
» Views: 434
Looking for a Pawn dev - ...
Forum: General Discussions
Last Post: RedNeckSnailSpit
2026-07-11, 10:07 AM
» Replies: 0
» Views: 52
Custom Launcher
Forum: Questions and Suggestions
Last Post: voidedsphinx
2026-07-10, 05:18 PM
» Replies: 0
» Views: 75
My Server keeps closing
Forum: Questions and Suggestions
Last Post: iAmir
2026-07-09, 08:55 AM
» Replies: 1
» Views: 74
[LIVE] [FRESH START] Ulti...
Forum: Advertisements
Last Post: Neville
2026-07-07, 08:37 PM
» Replies: 0
» Views: 134
[Announcement] Spawn - An...
Forum: Tech
Last Post: ricardofnl
2026-07-07, 10:38 AM
» Replies: 2
» Views: 360
Silly little render a did...
Forum: Art
Last Post: iAmir
2026-07-05, 12:07 AM
» Replies: 1
» Views: 1,326
Discord Server Unable to ...
Forum: Chat
Last Post: iAmir
2026-07-05, 12:06 AM
» Replies: 1
» Views: 496

 
  Object disappear problem
Posted by: ChampDotChamp - 2020-04-04, 08:17 PM - Forum: Pawn Scripting - Replies (5)

I have a weird problem. Objects created by functions or commands,?not in?global?OnGameModeInit(), disappear after some period of time.?
I've tried to use default CreateObject, but it hasn't worked.


  FCNPC created in 0 vw and interior when it shouldn't
Posted by: Fairuz - 2020-04-01, 07:02 PM - Forum: Support - No Replies

Code:
stock CreateCivilianNpc( name[ ], skinId[ ], clerkId, animlib[ 16 ], animname[ 16 ], const Float: position[ 4 ], worldid = -1, interior = -1, bool: hostile = true, numSkins = sizeof( skinId ) )
{
    new
        szBotName[ MAX_PLAYER_NAME ];

    format( szBotName, sizeof( szBotName ), "%s", name );
    strreplacechar( szBotName, ' ', '\0' );
    strreplacechar( szBotName, '/', '\0' );

    new
        civilianid = Iter_Free(CivilianNpc);

    if ( civilianid != ITER_NONE )
    {
        new
            randomSkin = random( numSkins );

        Iter_Add(CivilianNpc, civilianid);

        format( g_civilianNpcData[ civilianid ] [ E_ANIM_LIB ], 16, "%s", animlib );
        format( g_civilianNpcData[ civilianid ] [ E_ANIM_NAME ], 16, "%s", animname );
        format( g_civilianNpcData[ civilianid ] [ E_NPC_NAME ], MAX_PLAYER_NAME, "%s", name );
        CreateDynamic3DTextLabel( sprintf( "%s", name ), 0xFFFFFF25, position[ 0 ], position[ 1 ], position[ 2 ], 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, .testlos = 0, .worldid = worldid );
        g_civilianNpcData[ civilianid ] [ E_NPC_ID ] = FCNPC_Create( worldid != -1 ? sprintf( "[BOT]%s%d", szBotName, civilianid ) : sprintf( "[BOT]%s", szBotName ) );
        //g_civilianNpcData[ civilianid ] [ E_WORLD ] = worldid == -1 ? 0 : worldid;
        //g_civilianNpcData[ civilianid ] [ E_INTERIOR ] = interior == -1 ? 0 : interior;
        g_civilianNpcData[ civilianid ] [ E_WORLD ] = worldid;
        g_civilianNpcData[ civilianid ] [ E_INTERIOR ] = interior;
        g_civilianNpcData[ civilianid ] [ E_CLERK_ID ] = clerkId;
        g_civilianNpcData[ civilianid ] [ E_HOSTILE ] = hostile;
        FCNPC_Spawn( g_civilianNpcData[ civilianid ] [ E_NPC_ID ], skinId[ randomSkin ], position[ 0 ], position[ 1 ], position[ 2 ] );
        FCNPC_SetAngle( g_civilianNpcData[ civilianid ] [ E_NPC_ID ], ( g_civilianNpcData[ civilianid ] [ E_RZ ] = position[ 3 ] ) );
    }
    else print( "[ERROR] Civilian cannot be added due to small limit, please raise." );

Quote:                
CreateCivilianNpc( "Triad", { 117, 118, 121, 122, 123 }, clerkid, "INT_HOUSE", "wash_up", drugDealerPositions[ 0 ] [ random( sizeof( drugDealerPositions[ ] ) ) ], worldid, .interior = 6 ); 
Quote:                      
            FCNPC_SetVirtualWorld( npcid, g_civilianNpcData[ civilianid ] [ E_WORLD ] );

            FCNPC_SetInterior( npcid, g_civilianNpcData[ civilianid ] [ E_INTERIOR ] );

The value is zero, why ? how do I fix this?


  ColAndreas not supported in 0.3.dl ? or i'm doing something wrong ?
Posted by: mouiz - 2020-03-29, 12:56 PM - Forum: Pawn Scripting - Replies (4)

NVM, Fixed!


  GetPlayerResolution()
Posted by: Sauron - 2020-03-27, 01:08 AM - Forum: Questions and Suggestions - No Replies

Hello!



Can you please include that feature of Hual here:?https://github.com/Hual/SA-MP-Plus/wiki/GetPlayerResolution



It would be useful for showing the correct textdraw size depending on the player'?game resolution.



A big thanks if it gets accepted!



Sincerely Sauron!


  New funtions
Posted by: ThePez - 2020-03-26, 07:43 PM - Forum: Questions and Suggestions - Replies (2)

can make new functions like these...



https://forum.sa-mp.com/showthread.php?t=102997



also the SA-MP Plus library


  Next and back button for dialogs.
Posted by: Stefhan - 2020-03-24, 05:51 PM - Forum: Pawn Scripting - Replies (4)

I have been trying to add a next/back button?to this dialog for every 10 results. So far, I haven't managed to do it, hence I reverted the code back to the version without that.



Can anyone help me figure this out? There's really no good guide on this.

Code:
? ? ? ?case E_WARP_DIALOG_EXTS:

? ? ? ?{

? ? ? ? ? ?new warpstr[2000];

? ? ? ? ? ?format(warpstr, sizeof warpstr, INLINE[COLOR_SPOPT]"ID\t" INLINE[COLOR_SPOPT]"Name\n");

? ? ? ? ? ?for(new i = 0; i < MAX_WARPS; i)

? ? ? ? ? ?{

? ? ? ? ? ? ? ?if(!g_WarpsInfo[i][E_WARP_EXISTS])

? ? ? ? ? ? ? ? ? ?continue;

? ? ? ? ? ? ? ?if(g_WarpsInfo[i][E_WARP_CATEGORY] != 1) // 1 is the category ID for exteriors

? ? ? ? ? ? ? ? ? ?continue;

? ? ? ? ? ? ? ?else

? ? ? ? ? ? ? ? ? ?format(warpstr, sizeof(warpstr), "%s" INLINE[COLOR_OPTION] "#%d\t" INLINE[COLOR_OPTION] "%s\t\n", warpstr, i, g_WarpsInfo[i][E_WARP_NAME]);

? ? ? ? ? ?}



? ? ? ? ? ?inline DialogResponse_2(_playerid, dialogid, response, listitem, inputtext[])

? ? ? ? ? ?{

? ? ? ? ? ? ? ?#pragma unused dialogid, listitem

? ? ? ? ? ? ? ?if(!response)

? ? ? ? ? ? ? ?{

? ? ? ? ? ? ? ? ? ?WARPS_TeleportList(_playerid, E_WARP_DIALOG_MAIN);

? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ?if(response)

? ? ? ? ? ? ? ?{

? ? ? ? ? ? ? ? ? ?new str[256], warp_id;



? ? ? ? ? ? ? ? ? ?sscanf(inputtext[1],"d",warp_id);



? ? ? ? ? ? ? ? ? ?DelayedTeleport(playerid, g_TeleportDelay, g_WarpsInfo[warp_id][E_WARP_POS][0], g_WarpsInfo[warp_id][E_WARP_POS][1], g_WarpsInfo[warp_id][E_WARP_POS][2]\

? ? ? ? ? ? ? ? ? ?,?g_WarpsInfo[warp_id][E_WARP_POS][3], g_WarpsInfo[warp_id][E_WARP_WORLD], g_WarpsInfo[warp_id][E_WARP_INT]);



? ? ? ? ? ? ? ? ? ?format(str, sizeof(str), "%s %s(%d) has warped to %s(%d).", ReturnStaffLevel(playerid), ReturnICName(playerid), playerid, g_WarpsInfo[warp_id][E_WARP_NAME], warp_id);

? ? ? ? ? ? ? ? ? ?ABroadCast(COLOR[COLOR_SADMIN], str, 1);

? ? ? ? ? ? ? ?}

? ? ? ? ? ?}

? ? ? ? ? ?Dialog_ShowCallback(playerid, using inline DialogResponse_2, DIALOG_STYLE_TABLIST_HEADERS, INLINE[COLOR_HEADER] "Exterior Warps", warpstr, "Teleport", "Return");

? ? ? ?}


  textdraw editors
Posted by: Metro - 2020-03-15, 01:40 PM - Forum: Pawn Scripting - Replies (1)

how do people create textdraws nowadays? I have the full sampctl setup and all that but trying to install textdraw editors makes me kill myself because they don't even compile due to standard library conflicts and whatnot



is there anyone here who uses textdraw editors using sampctl who could help? i've had no luck so far


Smile [Dudas]
Posted by: whislire - 2020-03-12, 05:08 AM - Forum: Spanish/Español - Replies (1)

Buenas noches a todos mi consulta es al siguiente he comenzado a editar una gamemode que trabaja con m?dulos es necesario compilar con un programa aparte (?)



desde ya muchas gracias :D


  Coronavirus thread
Posted by: Metro - 2020-03-11, 08:34 AM - Forum: Chat - Replies (11)

So we all know what the deal is

How are you guys holding up?

Over here in Italy it's pretty bad, some regions are in quarantine and since a few days ago the whole country's been on lockdown. Most businesses are closed, I haven't been to school in weeks now and in some places there's even police patrols going around with megaphones telling people to stay inside

pretty spooky stuff, but i've taken the occasion to get some dust off my samp scripting


  What map editor do you guys use?
Posted by: Metro - 2020-03-09, 04:39 PM - Forum: Pawn Scripting - Replies (2)

I've looked for more modern and comfortable map editors through the forums but everyone still seems to use the ancient godawful SAMP Map Editor.?



What map editor do you guys use? Is there any editor you would recommend due to its more user friendly interface and features?