SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Mugala
Forum: Scripting Help 08/02/2020, 11:16 AM
Replies: 1
Views: 65
Posted By Mugala
Re: onplayerext

Provide a code and I'll look into in.
Forum: Scripting Help 15/01/2020, 02:35 PM
Replies: 11
Views: 319
Posted By Mugala
Re: GPS Plugin

usage is in Filterscript folder.
Forum: Scripting Help 15/01/2020, 09:33 AM
Replies: 16
Views: 557
Posted By Mugala
Re: Gamemode Problem. (if you fix i pay you.)

just type an errors and part of a code here (which is involved in these cases)
Forum: Scripting Help 15/01/2020, 09:31 AM
Replies: 2
Views: 190
Posted By Mugala
Re: How can i block on foot damage to vehicle? (Fist damage)

You can create this by checking KEYs, State, WeaponID, Target of Player and Distance from nearest vehicle in OnPlayerUpdate callback (will take a time for processing) but this will work.
Forum: Scripting Help 15/01/2020, 09:23 AM
Replies: 11
Views: 319
Posted By Mugala
Re: GPS Plugin

RouteConnector is a plugin, not only an include, check this - https://github.com/grasmanek94/SA-MP-GPS
you have to create the rest of the code yourself.
Forum: Scripting Help 15/01/2020, 09:16 AM
Replies: 3
Views: 94
Posted By Mugala
Re: How to fix [ Function not Registered ]

Just changing text in server.cfg doesn't means that you have a plugin in your plugins name with that name, check plugins folder, then, edit your server.cfg, make sure you have mysql plugin. (linux...
Forum: Scripting Help 14/01/2020, 11:55 AM
Replies: 1
Views: 60
Posted By Mugala
Re: Help with crash

your ColAndreas plugin causes server to be crashed, try upgrading to the last version of plugin and make sure include and plugins match each-others' version.
Forum: Scripting Help 30/12/2019, 01:48 PM
Replies: 19
Views: 357
Posted By Mugala
Re: after player dies from shots, it shows "Splat" instead of the weapon shot at the player

agh, I noticed that in "else" logic, you have issuerid, instead of playerid.
else
{
format(s, 36, "%s -%.0f", weaponname, amount);
TextDrawSetString(TakeDamage[issuerid],...
Forum: Scripting Help 30/12/2019, 01:10 PM
Replies: 19
Views: 357
Posted By Mugala
Re: after player dies from shots, it shows "Splat" instead of the weapon shot at the player

no, just add this line and try suicide, then check server.log or command window (if it's localhost/win)
Forum: Scripting Help 30/12/2019, 01:01 PM
Replies: 19
Views: 357
Posted By Mugala
Re: after player dies from shots, it shows "Splat" instead of the weapon shot at the player

try to commit suicide.forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
...
Forum: Scripting Help 30/12/2019, 12:53 PM
Replies: 19
Views: 357
Posted By Mugala
Forum: Scripting Help 30/12/2019, 12:44 PM
Replies: 19
Views: 357
Posted By Mugala
Re: after player dies from shots, it shows "Splat" instead of the weapon shot at the player

okay, here is a whole code.forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
...
Forum: Scripting Help 30/12/2019, 12:38 PM
Replies: 19
Views: 357
Posted By Mugala
Re: after player dies from shots, it shows "Splat" instead of the weapon shot at the player

for first, create 2 logic, when if(issuerid != INVALID_PLAYER_ID)
and else case.

in normal case, switch(weaponid) and add case 0: and default:
in else case, use your current code.
Forum: Scripting Help 30/12/2019, 12:36 PM
Replies: 1
Views: 101
Posted By Mugala
Re: MySQL table updates itself

well, there is not a problem in these queries, I think you must have a timer or something like that where this stock function is called, add print() to get a time when it's called.
Forum: Scripting Help 30/12/2019, 11:37 AM
Replies: 3
Views: 98
Posted By Mugala
Re: HELP FOR FASTER WRITE IN PAWNO

why do u need that?
use another IDE (such as sublime) and middle mouse button for "fast writing / editing"

also, Object[2999] = CreateObject.. at the last object, might be useful, depends what...
Forum: Scripting Help 30/12/2019, 08:44 AM
Replies: 4
Views: 125
Posted By Mugala
Re: PhoneBook Dialog

For first, you gonna need a database or saving systems, I consider using MySQL.
so there are a few steps.

1) create a table for phone-numbers, you gonna need this structure.
ID (int-11,...
Forum: Scripting Help 30/12/2019, 08:35 AM
Replies: 4
Views: 118
Posted By Mugala
Re: Inactive Accounts / Properties [MYSQL]

With my practice, I would make it by using MySQL in-built functions, such as DATEDIFF(date1,date2).
Store player's last login date in a database like:
UPDATE `PlayersTable` SET `LastOnDate` = NOW()...
Forum: Scripting Help 30/12/2019, 08:25 AM
Replies: 1
Views: 67
Posted By Mugala
Re: How NoT Exit Cars game

in OnPlayerStateChange, check if oldstate is PLAYER_STATE_DRIVER, so if it's true, just use PutPlayerInVehicle function (seat id 0 = driver)
but, you gonna save players' vehicle ID (as a global...
Forum: Scripting Help 30/12/2019, 08:21 AM
Replies: 3
Views: 101
Posted By Mugala
Re: Player's car

sunken vehicles always respawns (consider it's death), so you have to change it's spawn-location by recreating vehicle.
Forum: Scripting Help 30/12/2019, 08:17 AM
Replies: 5
Views: 121
Posted By Mugala
Re: car system

return value of playerDB[playerid][vCarID] to check if vehicle created or not.
if it's not created, it means that you achieved a max_vehicles limit, which is 2000 vehicle or provided parameters are...
Forum: Scripting Help 30/12/2019, 08:12 AM
Replies: 6
Views: 179
Posted By Mugala
Re: SendMSG to all using sql query? (+REP)

you can't send a message through SQL.
SQL is a database management system (detailed to wiki - https://en.wikipedia.org/wiki/MySQL)
you can't manipulate this as a 'message sending server', but,...
Forum: Scripting Help 27/12/2019, 01:57 PM
Replies: 5
Views: 139
Posted By Mugala
Re: Interesting objects

I'm sure nobody remembers these IDs, so I consider to look for these objects here - https://wiki.sa-mp.com/wiki/Game_Object_ID_List
Forum: Scripting Help 27/12/2019, 01:55 PM
Replies: 5
Views: 140
Posted By Mugala
Re: Gamemode doesn't start

which version of linux you're using? and it's VPS or hosting?
Forum: Scripting Help 27/12/2019, 12:29 PM
Replies: 5
Views: 140
Posted By Mugala
Re: Gamemode doesn't start

provide more logs and use nativechecker and crashdetect plugins for better troubleshooting.
Forum: Scripting Help 27/12/2019, 12:06 PM
Replies: 2
Views: 77
Posted By Mugala
Re: Using factioncolor in dialog.

For first, you need to add a colors in that array, or store in any variable or just point it manually.
there is an example: (for your FacColor, if it's integer)
if(FacInfo[i][FacList] == 1)
{
...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 11:52 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.