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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,224
» Latest member: tiktokusa479
» Forum threads: 2,374
» Forum posts: 12,328

Full Statistics

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

Latest Threads
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
Yesterday, 04:55 PM
» Replies: 2
» Views: 2,110
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
Yesterday, 01:25 PM
» Replies: 1
» Views: 22
Very Basic SAMP UCP
Forum: Videos and Screenshots
Last Post: bullyalina
Yesterday, 12:43 PM
» Replies: 49
» Views: 12,716
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 421
NFPA 318 Guidelines for C...
Forum: Videos and Screenshots
Last Post: elvishparker277
2025-06-27, 11:05 AM
» Replies: 0
» Views: 38
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 530
Farsi
Forum: Other
Last Post: acc.gangbeni
2025-06-25, 08:21 AM
» Replies: 2
» Views: 3,050
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-06-22, 06:47 PM
» Replies: 0
» Views: 43
[Request] Linko Gaming Ro...
Forum: General Discussions
Last Post: JamesC
2025-06-20, 07:34 PM
» Replies: 0
» Views: 58
RevolutionX DM/Stunt/Race...
Forum: Advertisements
Last Post: DerekZ905
2025-06-18, 03:12 PM
» Replies: 0
» Views: 79

 
  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;

}


  [SOLVED] How to select Dynamic Object from Plugin Streamer?
Posted by: PutuSuhartawan - 2021-04-15, 10:04 PM - Forum: Pawn Scripting - No Replies

PROBLEM:



Code:
public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)

{

? ? new message[526];



? ? if(type == SELECT_OBJECT_GLOBAL_OBJECT) {

? ? ? ? if(!IsValidObject(objectid)) return 0;

? ? ? ? format(message,sizeof(message),"[Global Object] Sir you have select line in server: %d, modelobjectID : %d, Pos: %.4f,%.4f,%.4f", objectid, modelid, fX, fY, fZ);

? ? ? ? SendClientMessage(playerid, 0xFFFFFFFF, message);

? ? ? ? EditObject(playerid, objectid);

? ? ? ? return 1;

}



if(type == SELECT_OBJECT_PLAYER_OBJECT) {

? ? ? ? if(!IsValidPlayerObject(playerid, objectid)) return 0;

? ? ? ? format(message,sizeof(message),"[Player Select player Object] Anda memilih baris proggram : %d modelID nya adalah: %dPos: %.4f,%.4f,%.4f", objectid, modelid, fX, fY, fZ);

? ? ? ? SendClientMessage(playerid, 0xFFFFFFFF, message);

? ? ? ? EditPlayerObject(playerid, objectid);

? ? ? ? //EditDynamicObject(playerid, objectid);

? ? ? ? SEM(playerid, "Dynamic edit after select non dynamic");

? ? ? ? return 1;



? ? if(type == STREAMER_OBJECT_TYPE_GLOBAL)

? ? {

? ? ? SEM(playerid, "Dynamic object type global");

? ? ? Streamer_Update(playerid, -1);

? ? ? EditDynamicObject(playerid, objectid);

? ? ? return 1;

? ? }

}





SOLUTION:

Code:
if(type == SELECT_OBJECT_PLAYER_OBJECT) {

? ? OnPlayerSelectDynamicObject(playerid, objectid, modelid, Float:fX, Float:fY, Float:fZ);

? ? ? // if(!IsValidPlayerObject(playerid, objectid)) return 0;

? ? ? ? format(message,sizeof(message),"[Player Select player Object] Anda memilih baris proggram : %d modelID nya adalah: %dPos: %.4f,%.4f,%.4f", objectid, modelid, fX, fY, fZ);

? ? ? ? SendClientMessage(playerid, 0xFFFFFFFF, message);

? ? ? ? EditPlayerObject(playerid, objectid);

? ? ? ? //EditDynamicObject(playerid, objectid);

? ? ? ? SEM(playerid, "Dynamic edit after select non dynamic");

? ? ? ? return 1;

? }