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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,733
» Latest member: Laurievans
» Forum threads: 2,514
» Forum posts: 12,593

Full Statistics

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

Latest Threads
German San Andreas Server
Forum: Advertisements
Last Post: Nova.Esports
Yesterday, 08:45 PM
» Replies: 1
» Views: 52
[balkan] Ultimate 2020 - ...
Forum: Gamemodes
Last Post: Saco
2026-07-28, 05:42 PM
» Replies: 12
» Views: 26,602
Carson County Roleplay - ...
Forum: Advertisements
Last Post: Carson County Roleplay
2026-07-27, 07:13 PM
» Replies: 0
» Views: 75
Random Message
Forum: Filterscripts
Last Post: Engkq
2026-07-27, 12:38 AM
» Replies: 0
» Views: 84
Virtual Reality Roleplay ...
Forum: Advertisements
Last Post: Emirto
2026-07-25, 10:59 PM
» Replies: 0
» Views: 71
[LIVE] [FRESH START] Ulti...
Forum: Advertisements
Last Post: Neville
2026-07-25, 09:10 AM
» Replies: 1
» Views: 255
[ULP] Gamemode Base para ...
Forum: Offtopic
Last Post: xcleone
2026-07-24, 02:22 AM
» Replies: 0
» Views: 411
RSC - (CW/TG | Sandbox)
Forum: Gamemodes
Last Post: 1NS
2026-07-23, 05:28 PM
» Replies: 0
» Views: 92
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: Centnodes
2026-07-23, 03:55 PM
» Replies: 16
» Views: 6,756
Issue
Forum: General Discussions
Last Post: avoid
2026-07-21, 12:27 PM
» Replies: 0
» Views: 72

 
  [SOLVED] How users can fishing anywhere as long as there is water everywhere.
Posted by: PutuSuhartawan - 2021-04-18, 04:43 AM - Forum: Pawn Scripting - Replies (11)

SOLUTION with?Radical?Pinch?AbyssMorgan?arber:

?

Code:
#include <progress2>

[/font][/size][/color]





#include <foreach>// color with string







#include <3DTryg>



#include <colandreas>







// the variabel meaning of water object







#define? ? ? ? FISH_THRESHOLD? ? ? ? ? ? 3.0



#define? ? ? ? WATER_CHECK_RADIUS? ? ? ? 15.0











IsPlayerNearWater(playerid)







{







? ? new







Float:x,







Float:y,







Float:z,







Float:cx,







Float:cy,







Float:cz,







Float:angle;















? ? GetPlayerPos(playerid, x, y, z);















? ? // Will not work near the dam







? ? if(z > 0.0 && z < FISH_THRESHOLD)







? ? {







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







? ? ? ? {







? ? ? ? ? ? cx = x  (WATER_CHECK_RADIUS * floatsin(-angle, degrees));







? ? ? ? ? ? cy = y  (WATER_CHECK_RADIUS * floatcos(-angle, degrees));







? ? ? ? ? ? angle = 90.0;















? ? ? ? ? ? CA_FindZ_For2DCoord(cx, cy, cz);















? ? ? ? ? ? // Doesn't work under bridges







? ? ? ? ? ? if(cz == 0.0) return 1;







? ? ? ? }







? ? }







? ? return 0;



}











CMD:fish(playerid, params[])







{







if (IsPlayerNearWater(playerid))







//if(IsPlayerInRangeOfPoint(playerid, 100.0, 1062.4270,-2567.9729,-0.5079)) // lokasi mancing







{







? ? ? ? if(WormAttached[playerid] < 1) return SendClientMessage(playerid, COLOR_LIGHTRED, ""COL_LIGHTBLUE"FISH: "COL_WHITE"Sir sorry you need to have a bait worm attached to the fishing rod to fish with"COL_YELLOW"'/attachworm'");







? ? ? ? if(FishingEquipped[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to have your fishing rod equipped.");







? ? ? ? if(Fishing[playerid] == true) return SendClientMessage(playerid, COLOR_LIGHTRED, "You are already fishing.");







? ? ? ? if(pInfo[playerid][pFishes] > 5)







? ? {







? ? SendClientMessage(playerid, COLOR_LGREEN, ""COL_LIGHTBLUE"FISH: "COL_WHITE"Please the fish the on sale first with "COL_YELLOW"'/sellfish'");







? ? cmd_fishingrod(playerid);







? ? ApplyAnimation(playerid, "PED", "idle_taxi", 4.0, 0, 1, 1, 1, -1, 1);







? ? return 1;







? ? }







? new string[140];







format(string, sizeof(string), "* %s begins to fish with his fishing rod.", GetRPName(playerid));







LocalMessage(ACTION_DISTANCE, playerid, ACTION_COLOR, string);







? fish[playerid] = 2; //change it with the timer time























? new Float:BBCoord[4];







? ? GetPlayerPos(playerid, BBCoord[0], BBCoord[1], BBCoord[2]);







? ? GetPlayerFacingAngle(playerid, BBCoord[3]);























EfekPancingan[playerid] = SpawnObject_InfrontOfPlayer(playerid, 18717);







//CreateDynamicObject(18717, BBCoord[0], BBCoord[1], BBCoord[2]-2.4, 0.0, 0.0, 0.0, 0,? 0);























? ? TimerFish[playerid] = SetTimerEx("timerFish", 1000, 1, "i", playerid);







? ? TogglePlayerControllable(playerid, 0);







? ? WormAttached[playerid] = 0;







? ? ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1, 1);







? ? Fishing[playerid] = true;







?







?







}







else return SendClientMessage(playerid, COLOR_RED, "You can't sir fishing here with out river .");







? return 1;



}











THE PROBLEM:



Code:
i just know IsPlayerInRangeOfPoint,







if (IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))



? ? {



? ? ? ? SendClientMessage(playerid,0xFFFFFFFF,"Need around water area to fishing");



? ? }

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif][color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]
[/font][/size][/color]


  hammering animation?
Posted by: Boxi - 2021-04-17, 10:38 PM - Forum: Pawn Scripting - Replies (2)

well, I would like to know the name for the animation of using a hammer, thanks!


  [SOLVED] How to make a textdraw object that looks circle? replace box which is usuall
Posted by: PutuSuhartawan - 2021-04-17, 06:46 AM - Forum: Pawn Scripting - Replies (2)

Solution:

Code:
[color=#333333][size=small][font=Roboto]Create a sprite textdraw.[/font][/size][/color]

[color=#333333][size=small][font=Roboto]Circle:[/font][/size][/color]

[color=#333333][size=small][font=Roboto]LD_BEAT:chit[/font][/size][/color]





List of all sprites:?https://open.mp/docs/scripting/resources...rawsprites



Problem:

I don't know a circle?object that can replace a box in textdraw. I can't even find the big round object in the textdraw


  Getting online players of specific team
Posted by: Turk54721 - 2021-04-17, 06:09 AM - Forum: Pawn Scripting - Replies (2)

Hello, how can I get online players of specific team?


Tongue How unprocessed queries looks like
Posted by: kalEd - 2021-04-17, 06:07 AM - Forum: Pawn Scripting - Replies (4)

How a unprocessed query?should it look like?

What this mean?


  Server economy ideas?
Posted by: Snow - 2021-04-16, 11:06 PM - Forum: General Discussions - Replies (2)

So I am running a freeroam server and I'm pretty much stuck at server economy. There are not much uses of money atm. Right now, money can be used for buying houses, adding objects in the house, attaching objects on the skin and buying weapons. Not to forget a little amount that gets deducted on death. I think its not much for a freeroam server but then again, its freeroam so limiting things such as vehicles to money will be bad for server aswell. So what are your suggestions?


  Sending message to all owner of key (from SQL)
Posted by: Axitz - 2021-04-16, 10:46 PM - Forum: Pawn Scripting - Replies (1)

Hi,



How do I make something like sending message to all key's holder from sql function?



example like :



PHP Code:
mysql_format(sqldatapQuerysizeof pQuery"SELECT doorkey FROM `bizkeys` WHERE bizid = %d;"bizid);

new 
Cache:result mysql_query(sqldatapQuery);



then?



sendclientmsg to all holder of "doorkey" from bizid = %d



or something.


  Getting the size of an array
Posted by: Torque - 2021-04-16, 02:37 PM - Forum: Pawn Scripting - Replies (3)

I have a multi-dimensional array, and I want to get the size of each line.

Code:
new BusRoutes[][] = {
? ? {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10},
? ? {0, 11, 12, 13, 14, 15, 16, 17, 18, 19, 10}
};


Code:
new const MaxStops[] = sizeof(BusRoutes[]);

Code:
format(sStops, sizeof(sStops), "Stops: 0/%d", MaxStops[vRoute]);

If vRoute = 0, it works fine, but if it equals 1, the function crashes and it doesn't continue running the rest of the function. Something is wrong with MaxStops[vRoute] if vRoute equals anything other than 0.

What am I doing wrong?


  HELP! how to edit a dynamic object attached to vehicle stucked position
Posted by: PutuSuhartawan - 2021-04-16, 12:42 AM - Forum: Pawn Scripting - Replies (5)

Code:
CMD:objekkendaraan(playerid, params[])

{



//SetPlayerArmour(playerid, Float:70.1);

//pakaiarmour[playerid] = 1; // kondisi sedang pakai armour

//SetPlayerAttachedObject(playerid, 3, 19515, 1 , 0.096999,0.058999,0.012999,4.199995,0.999981,8.800023,1.000000,1.221000,0.797000, 0xFFFFA500, 0xFFFFA500);

//EditAttachedObject(playerid, 3);







//contohdikendaraan = CreateDynamicObject(18649, 0,0,0,0,0,0);

//CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0)

//CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0)

contohdikendaraan = CreateDynamicObject(18649, Float:0.0, Float:0.0, Float:0.0, Float:0.0, Float:0.0, Float:0.0, 0, 0, -1, Float:20.0,Float:20.0, -1, 0);

SendClientMessage(playerid, COLOR_GREEN, "Anda pasang neon hijau.");

//SetDynamicObjectMaterialText(tmpobjid, 0, "Pesawat Putu", 130, "Arial", 70, 1, 0xFFFFFFFF, 0x00000000, 1);



//SetDynamicObjectMaterialText(STREAMER_TAG_OBJECT contohdikendaraan, 0, "Solusi", 130, "Arial", 70, 1,? 0xFFFFFFFF, 0, 1);



//AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ)

pInfo[playerid][pNeon] = AttachDynamicObjectToVehicle( contohdikendaraan, GetPlayerVehicleID(playerid));

? /*

? Float:0.0, // kanan kiri

? Float:-2.0, // kedepan

? ? Float:0.0, // ke atas

? ? Float:2.0, Float:0.0, Float:0.0);

? */

//AttachDynamicObjectToVehicle(STREAMER_TAG_OBJECT objectid, vehicleid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz)

//EditPlayerObject(playerid, objectid);

//RemovePlayerFromVehicle(playerid);

//EditAttachedObject(playerid, idterttach);

//EditObject(playerid, contohdikendaraan);

//contohdikendaraan = false;

? //Streamer_SetIntData(STREAMER_TYPE_OBJECT, contohdikendaraan, E_STREAMER_ATTACHED_VEHICLE, 2);

//Streamer_SetFloatData(

? //SetDynamicObjectMaterial(contohdikendaraan, 0, 10765, "airportgnd_sfse", "white", -256);

EditDynamicObject(playerid, contohdikendaraan);

? Streamer_Update(playerid);

//EditDynamicObject(playerid, pInfo[playerid][pNeon]);

//EditAttachedObject(playerid, contohdikendaraan);

return 1;

}


  [SOLVED] Cant spawn object from right AddSimpleModel just symbol "?" spawned
Posted by: PutuSuhartawan - 2021-04-15, 10:39 PM - Forum: Pawn Scripting - No Replies

PROBLEM :

Code:
AddSimpleModel(0, 5409, 20002, "mosque.dff", "mosque.txd");



SOLUTION :

Code:
// adding minus symbol (-) to index model has modded.

AddSimpleModel( -1, 5409,? -20002, "mosque.dff", "mosque.txd");







source?https://dev.prineside.com/en/gtasa_samp_model_id/model/5409-laepetrol1a/



Code:
CMD:addmosque(playerid, params[])

{

? new Float:pos[6];

? GetPlayerPos(playerid, pos[0], pos[1], pos[2]);



? new Float: angle;

? GetPlayerFacingAngle(playerid, angle);





?



? new object;// = CreateObject(model, pos[0]  (20.0 * floatsin(-angle, degrees)), pos[1]  (20.0 * floatcos(-angle, degrees)), pos[2]  5, 0, 0, angle);

? object = CreateObject(20002,pos[0], pos[1], pos[2], 0, 0, angle);

? //object = CreateDynamicObject(20002,pos[0], pos[1], pos[2], Float:0, Float:0, Float:0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid) );

? PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);



? new string[144];

? format(string, sizeof(string), "You have created a new object original : 5409, idobject in server : %i, position: %f, %f, %f, 0.0, 0.0, %f].", object, pos[0], pos[1], pos[2], angle);

? SendClientMessage(playerid, COLOR_RED, string);

? EditObject(playerid, object);

? //Streamer_Update(playerid, -1);

? //EditDynamicObject(playerid, labelajah[playerid]);

? SendClientMessage(playerid, 0xFFFFFFFF, "MOVE OBJECT: Hold the button of {FFFF00}~k~~PED_SPRINT~{FFFFFF} for free looking at.");



? return 1;

}