| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 162 online users. » 0 Member(s) | 159 Guest(s) Google, Bing, Baidu
|
| Latest Threads |
GTA San Andreas Definitiv...
Forum: General Discussions
Last Post: traumasmart29
Today, 05:34 AM
» Replies: 7
» Views: 26,021
|
The size of the output am...
Forum: Questions and Suggestions
Last Post: scandalfive
2025-12-01, 07:07 PM
» Replies: 0
» Views: 58
|
Слоты
Forum: Russian/???????
Last Post: muck092
2025-12-01, 06:32 PM
» Replies: 1
» Views: 1,940
|
Garsiono's, Ricardo's, Tr...
Forum: Advertisements
Last Post: drwnrbbt
2025-12-01, 10:15 AM
» Replies: 0
» Views: 52
|
After School Roleplay [ R...
Forum: Advertisements
Last Post: cosminupgaming
2025-11-29, 09:39 PM
» Replies: 1
» Views: 300
|
Voltage Roleplay [English...
Forum: Advertisements
Last Post: JamesC
2025-11-29, 09:27 PM
» Replies: 0
» Views: 46
|
Vice WRLD Freeroam/RP
Forum: Advertisements
Last Post: pdjumailiev
2025-11-24, 11:30 AM
» Replies: 0
» Views: 117
|
Wanting to Start a RP Ser...
Forum: Chat
Last Post: Wein
2025-11-24, 09:07 AM
» Replies: 1
» Views: 245
|
Help me for creating a fr...
Forum: General Discussions
Last Post: [Rs]VeNoM
2025-11-23, 07:33 AM
» Replies: 0
» Views: 90
|
The server didn't respond...
Forum: Support
Last Post: richboY
2025-11-22, 10:51 AM
» Replies: 0
» Views: 111
|
|
|
| Help with Damage System |
|
Posted by: icecoldkangaroo12 - 2021-05-29, 01:16 AM - Forum: Pawn Scripting
- Replies (14)
|
 |
Dear Community
I wanna ask to you how can I make any damage system without using includes?
I mean if there is a possibility to make a different damage system, that a weapon will lower more life or that less life without using external plugins or includes?
Example - I need the sawn-off weapon to make -60 of damage?from the player who receives the shots, is that possible to do without using the above?
If you guys can guide/help me and show me some examples with code please
NOTE: I'm using the callback called OnPlayerTakeDamage(parameters) but i dont have anything of this?
|
|
|
|
| HELP! How to Aligned Format String to Center or Justifier Aligner ? |
|
Posted by: PutuSuhartawan - 2021-05-26, 05:37 PM - Forum: Pawn Scripting
- No Replies
|
 |
Code: new trunkdataslot1items[1000];
format(trunkdataslot1items, sizeof(trunkdataslot1items), ""COL_RED"SQL ID\t"COL_BLUE"Items\t"COL_GREEN"Amount\t"COL_GREEN"Owner\n");
? ? ? ? ? ? // max item id is 6. but in array show 7 because was counted from zero.
for(new s; s<MAX_TRUNK_SLOTS; s)
? ? ? ? ? ? {
? ? ? ? ? ? format(trunkdataslot1items, sizeof(trunkdataslot1items),
? ? ? ? ? ? " %s "COL_RED"%i \t"COL_BLUE" %s\t "COL_RED"%i %s\t"COL_GREEN" %i\n",
? ? ? ? ? ? trunkdataslot1items, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME), get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME_COUNT), get_vehicle_trunk[closestcar][s][TRUNK_OWNER_ID] );
? ? ? ? ? ? printf("[TRUNK]: Slot:[%i], SQL ID:[%d], Item Type:[%d], Amount:[%d], ", s, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE],? get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT]);
? ? ? ? ? ? }
ToggleBoot(pInfo[playerid][LastVehicleID], VEHICLE_PARAMS_ON);
? ? ? ? ? ShowPlayerDialog(playerid, DIALOG_OPEN_VEHICLE_TRUNK, DIALOG_STYLE_TABLIST_HEADERS, DialogTitle , trunkdataslot1items, "Take it", "Close");
? ? ? ? ? ?
|
|
|
|
| OnPlayerSoundIDChange |
|
Posted by: DTV - 2021-05-25, 10:29 PM - Forum: Questions and Suggestions
- No Replies
|
 |
Not sure how far fetched this is but have a callback that is able to detect any given sound ID that can be used in PlayerPlaySound, so if a player has a certain sound play near them like an explosion, the callback would be able to detect it.
|
|
|
|
| [SOLVED] How use DIALOG_STYLE_TABLIST_HEADERS with loops for function wrong format |
|
Posted by: PutuSuhartawan - 2021-05-25, 04:09 AM - Forum: Pawn Scripting
- No Replies
|
 |
SOLUTION:?
Put The format before for loops function
Code: new trunkdataslot1items[1000];
format(trunkdataslot1items, sizeof(trunkdataslot1items), ""COL_RED"SQL ID\t"COL_BLUE"Items\t"COL_GREEN"Amount\n");
? ? ? ? ? ? for(new s; s < MAX_TRUNK_SLOTS; s )
? ? ? ? ? ? {
? ? ? ? ? ? ? ?
? ? ? ? ? ? format(trunkdataslot1items, sizeof(trunkdataslot1items),
? ? ? ? ? ? " %s %i \t"COL_GREEN" %s \t "COL_RED"%i %s \n",
? ? ? ? ? ? trunkdataslot1items, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME), get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME_COUNT)? );
? ? ? ? ? ? printf("[TRUNK]: Slot:[%i], SQL ID:[%d], Item Type:[%d], Amount:[%d], ", s, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE],? get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT]);
? ? ? ? ? ? }
? ? ? ? ? ShowPlayerDialog(playerid, DIALOG_OPEN_VEHICLE_TRUNK, DIALOG_STYLE_TABLIST_HEADERS, DialogTitle , trunkdataslot1items, "Take it", "Close");
? ? ? ? ? ?
Problem:
How put?"COL_RED"SQL ID\t"COL_BLUE"Items\t"COL_GREEN"Amount\n in the right place?
Code: ? ? ? ? ? ? for(new s; s < MAX_TRUNK_SLOTS; s )
? ? ? ? ? ? {
? ? ? ? ? ? ? ?
? ? ? ? ? ? format(trunkdataslot1items, sizeof(trunkdataslot1items),
? ? ? ? ? ? " %s %i \t"COL_GREEN" %s \t "COL_RED"%i %s \n",
? ? ? ? ? ? trunkdataslot1items, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME), get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME_COUNT)? );
? ? ? ? ? ? printf("[TRUNK]: Slot:[%i], SQL ID:[%d], Item Type:[%d], Amount:[%d], ", s, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE],? get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT]);
? ? ? ? ? ? }
? ? ? ? ? ShowPlayerDialog(playerid, DIALOG_OPEN_VEHICLE_TRUNK, DIALOG_STYLE_TABLIST_HEADERS, DialogTitle , trunkdataslot1items, "Take it", "Close");
? ? ? ? ? ?
|
|
|
|
Streamer |
|
Posted by: SeeK Space - 2021-05-25, 02:09 AM - Forum: Pawn Scripting
- Replies (5)
|
 |
Hello. Good morning, good afternoon, good night. Well, the items of the streamer?on my server are disappearing in a very random way, all the functions? DestroyDynamic?are correct, the items created when the server is started do not disappear, just the recently created ones at a certain time. I have also looked at all the timers and nothing works with what could make these items disappear.?I also realized that this happens when there is a considerable average number of players online on the server.
|
|
|
|
|