SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Mugala
Forum: Scripting Help 16/10/2019, 09:33 AM
Replies: 4
Views: 209
Posted By Mugala
Re: [Cheater] Car destruction

these kind of cheats can be detected by callbacks
- OnPlayerStateChange >> if player's state changed without OnPlayerEnterVehicle, he's obviously hacking or placed by a function -...
Forum: Scripting Help 18/09/2019, 01:30 PM
Replies: 8
Views: 220
Posted By Mugala
Re: Getting ammo of holding weapon

https://wiki.sa-mp.com/wiki/GetPlayerAmmo
edit: a guy above is fastaf.
Forum: Scripting Help 18/09/2019, 01:28 PM
Replies: 4
Views: 223
Posted By Mugala
Re: Injecting samp.dll in to gta_sa.exe

consider using kernel for injections, I made a launcher for myself and I used kernel32 for that process, it's working perfectly.
Forum: Scripting Help 12/09/2019, 02:19 PM
Replies: 4
Views: 113
Posted By Mugala
Re: Function problem

I think CMD:irevento is an entering command to that event right? if so, you have to add checker in that command, check if event is started or not with evento (if(evento != 1) return...
Forum: Scripting Help 12/09/2019, 02:15 PM
Replies: 2
Views: 94
Posted By Mugala
Re: Real Time Help

Hello, you gonna need a_http.inc (SA:MP default include) and API from a weather broadcasting site which displays your local zone weather too.
than, add a timer in a gamemode (for example, 20 minute...
Forum: Scripting Help 12/09/2019, 10:42 AM
Replies: 7
Views: 142
Posted By Mugala
Re: Not working... no errors / warrings..

add debugs to see why it's not working, it's quite big code to look in details.
Forum: Scripting Help 12/09/2019, 10:17 AM
Replies: 3
Views: 126
Posted By Mugala
Re: Question about Arrays/MySQL

No, you don't need 3 dimensional array, also, there is a wrong placement in your code.
I suggest to use something like that

enum VEHICLE_DATA
{
vModel,
vOwner[MAX_PLAYER_NAME+1],
...
Forum: Scripting Help 12/09/2019, 09:54 AM
Replies: 9
Views: 327
Posted By Mugala
Re: Drop an object a little in front

where is that object is created?
Forum: Scripting Help 11/09/2019, 02:19 PM
Replies: 2
Views: 98
Posted By Mugala
Re: pawno color scheme for Sublime Text 3

press Preferences in a sublime text, than you can choose Themes and Color Schemes there, also you can install new themes in that window.
Forum: Scripting Help 11/09/2019, 12:43 PM
Replies: 14
Views: 381
Posted By Mugala
Re: Boombox

agh, yeah, with MAX_PLAYERS (as default defined 1000) you're looping it 1000 times, so with GetPlayerPoolSize, MAX ID was 0, so it just looped once, now I get it.

I consider create a new variable,...
Forum: Scripting Help 11/09/2019, 12:23 PM
Replies: 7
Views: 142
Posted By Mugala
Re: Not working... no errors / warrings..

well, it's quite complicated, too many checkers and a big loop, I think this might resolve issue if(!IsPlayerConnected(targetid)) continue;
...
Forum: Scripting Help 11/09/2019, 12:13 PM
Replies: 5
Views: 97
Posted By Mugala
Re: Ballon

what do you mean in ballons? or what are you trying to do?
Forum: Scripting Help 11/09/2019, 11:53 AM
Replies: 7
Views: 142
Posted By Mugala
Re: Not working... no errors / warrings..

if(!PoliceTeam(GetPlayerSkin(playerid)) && !SWAT(GetPlayerSkin(playerid)) && !Army(GetPlayerSkin(playerid)) && !FBII(GetPlayerSkin(playerid)) && !CIA(GetPlayerSkin(playerid)))this line is totally...
Forum: Scripting Help 11/09/2019, 09:45 AM
Replies: 6
Views: 169
Posted By Mugala
Re: Attached Object Dissapearing After Creation

you might have another SetPlayerAttachedObject in these indexes, make sure you don't have any, also check your includes.
Forum: Scripting Help 11/09/2019, 09:42 AM
Replies: 19
Views: 271
Posted By Mugala
Re: Help Me Streamer

and a config file?
Forum: Scripting Help 11/09/2019, 08:14 AM
Replies: 19
Views: 271
Posted By Mugala
Re: Help Me Streamer

can you show me a server.cfg file? and which OS you're using?

P.S. hide rconpassword.
Forum: Scripting Help 11/09/2019, 08:06 AM
Replies: 2
Views: 79
Posted By Mugala
Re: /parkcar command wont work

First of all, it's not int, it's float, I think that's a problem in your code.
Second, have you ever think about using SQL?
Forum: Scripting Help 11/09/2019, 07:30 AM
Replies: 14
Views: 381
Posted By Mugala
Re: Boombox

what kind of a problem?

OT: just change structure of that array and don't make that for playerid, define max boomboxs and use that number in an array.
Forum: Scripting Help 11/09/2019, 07:23 AM
Replies: 8
Views: 254
Posted By Mugala
Re: Business only load id 1

I think that you're trying to load a business in exactly ordering, I mean that you want to make i to be a businessID, which is totally wrong.
in MySQL table, removing one of these row, will...
Forum: Scripting Help 11/09/2019, 07:11 AM
Replies: 7
Views: 142
Posted By Mugala
Re: Not working... no errors / warrings..

if (newkeys & KEY_FIRE)This is enough, no need to use && !(oldkeys & KEY_LOOK_BEHIND)
Forum: Scripting Help 11/09/2019, 07:09 AM
Replies: 3
Views: 126
Posted By Mugala
Re: Question about Arrays/MySQL

use one array for both of them, add variable where will be placed a vehicle owner type,
for example, lets call server cars type 0 and player cars type 1.
Forum: Scripting Help 04/09/2019, 12:17 PM
Replies: 8
Views: 135
Posted By Mugala
Re: Y_ini not load data

Dude, what I said you didn't read.
Try and detect when this happens? in a Disconnect, or in a Connect?
When you quit game, check that file before you connect again.
If it's zero, than problem is...
Forum: Scripting Help 04/09/2019, 12:10 PM
Replies: 8
Views: 135
Posted By Mugala
Re: Y_ini not load data

check, when the problem happens, when you disconnect or when you connect? (don't say RELOG again, you're making both by relog)
Forum: Scripting Help 04/09/2019, 09:37 AM
Replies: 10
Views: 227
Posted By Mugala
Re: [/DRAG] Command Isn't Working

doesn't makes sense. it's same.
Forum: Scripting Help 04/09/2019, 07:17 AM
Replies: 10
Views: 227
Posted By Mugala
Re: [/DRAG] Command Isn't Working

Okay, you're saving Dragger and Player in PVars, so there must be a timer to update their positions, yeah?! so can you show me that timer?
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 03:53 PM.


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