SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: [KHK]Khalid
Forum: Discussion 16/07/2016, 06:21 PM
Replies: 8
Views: 798
Posted By [KHK]Khalid
Re: Possible to increase players run speed?

Dunno, try something like that


// Get player's velocity
new Float:x, Float:y, Float:z;
GetPlayerVelocity(playerid, x, y, z);
// Add to current velocity
new Float:increment = 10.0;
x +=...
Forum: Scripting Help 29/06/2016, 05:24 AM
Replies: 5
Views: 246
Posted By [KHK]Khalid
Re: Just wondering if it's possible, and if there's any ideas.

IsPlayerInRangeOfPoint (https://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint) and OnPlayerWeaponShot (https://wiki.sa-mp.com/wiki/OnPlayerWeaponShot).
Forum: Scripting Help 23/06/2016, 05:10 PM
Replies: 3
Views: 254
Posted By [KHK]Khalid
Re: Death System

OnPlayerTakeDamage (https://wiki.sa-mp.com/wiki/OnPlayerTakeDamage) and OnPlayerGiveDamage (https://wiki.sa-mp.com/wiki/OnPlayerGiveDamage) have weaponid parameter, you can check that against...
Forum: Scripting Help 23/06/2016, 04:57 PM
Replies: 7
Views: 245
Posted By [KHK]Khalid
Re: Please help me with this command

You most likely messed up the correct ordering. You have to figure out what went wrong and re-organize the lists. I don't expect someone will do it for you.
Forum: Scripting Help 23/06/2016, 04:53 PM
Replies: 5
Views: 246
Posted By [KHK]Khalid
Re: Just wondering if it's possible, and if there's any ideas.

Specify what you actually want ideas on.

1. how to detect "when someone creates a shootout".
2. how to detect "when someone creates a shootout in public places".
3. how to let the police have...
Forum: Scripting Help 23/06/2016, 04:48 PM
Replies: 5
Views: 192
Posted By [KHK]Khalid
Re: List issue ?

So, you want it to be blank in the dialog as well, not 0?
Forum: Scripting Help 20/06/2016, 05:17 PM
Replies: 6
Views: 283
Posted By [KHK]Khalid
Re: Kick already disconnected player

You can fix that by assigning a variable (say BeingKicked[playerid] = true) to whoever you set that delayed timer to, and on /ban or /kick commands you just do a check to make sure that BeingKicked...
Forum: Scripting Help 20/06/2016, 04:38 AM
Replies: 5
Views: 197
Posted By [KHK]Khalid
Re: couple bugs on Ban System

Shouldn't it be


if(!strcmp(banmsg[0], RPN(playerid), false, strlen(RPN(playerid))))
Forum: Scripting Help 20/06/2016, 03:51 AM
Replies: 2
Views: 114
Posted By [KHK]Khalid
Re: Text-draw help

Yeah, or change font type since this occurs only with that font as far as I remember.
Forum: Scripting Help 20/06/2016, 03:47 AM
Replies: 5
Views: 197
Posted By [KHK]Khalid
Re: couple bugs on Ban System

1. Use strcmp (https://wiki.sa-mp.com/wiki/Strcmp) and its length parameter.
2. What is RPIP and RPN? What do these two functions actually do?
Forum: Scripting Help 20/06/2016, 03:43 AM
Replies: 6
Views: 338
Posted By [KHK]Khalid
Re: Help please

I have no idea, probably not, but you can do that easily if you have the map thing script.
Forum: Scripting Help 20/06/2016, 02:07 AM
Replies: 6
Views: 338
Posted By [KHK]Khalid
Re: Help please

Remove OnPlayerCommandText code and maybe just place the following code at the end of OnFilterScriptInit:


new newname[64];
for(LastAdded = 0; LastAdded < 30; LastAdded ++)
{
...
Forum: Scripting Help 20/06/2016, 01:55 AM
Replies: 6
Views: 338
Posted By [KHK]Khalid
Re: Help please

Do you want it to spawn them when filterscript is loaded1? If so, how many NPCs do you need?
Forum: Everything and Nothing 09/05/2016, 07:37 AM
Replies: 21
Views: 1,371
Posted By [KHK]Khalid
Re: Is there any way to get the .pwn file.

This. I wonder how you lost the .pwn file because if you have the .amx then you must have got the .pwn saved somewhere?
Forum: Everything and Nothing 07/05/2016, 10:29 PM
Replies: 18
Views: 2,419
Posted By [KHK]Khalid
Re: [MySQL + PHP] Top 10 Players

Did you manage to get stats to update automatically or do you still need help with that?
Forum: Screenshots and Videos 06/05/2016, 03:20 PM
Replies: 26
Views: 3,005
Posted By [KHK]Khalid
Forum: Scripting Help 25/04/2016, 01:04 PM
Replies: 7
Views: 553
Posted By [KHK]Khalid
Re: Vehicle color

Show us your "car saving stock" code!
Forum: Scripting Help 25/04/2016, 12:58 PM
Replies: 1
Map
Views: 196
Posted By [KHK]Khalid
Re: Map

Yes, it's possible. Search for its code under OnPlayerEnterCheckpoint (http://wiki.sa-mp.com/wiki/OnPlayerEnterCheckpoint) then remove it, and/or try to find where the CP is set with...
Forum: Scripting Help 27/01/2016, 04:13 AM
Replies: 2
Views: 146
Posted By [KHK]Khalid
Re: Problem with value. Simple

In your first if statement, you check if CowTime is greater than 0, being that 5 is greater than 0, your else-if will not be reached when CowTime equals 5, the if statement code will take place...
Forum: Scripting Help 16/09/2015, 02:34 PM
Replies: 6
Views: 378
Posted By [KHK]Khalid
Re: Timer Minutes countdown?

Well then post the code you tried that made your server crash.
Forum: Scripting Help 15/09/2015, 11:05 PM
Replies: 5
Views: 404
Posted By [KHK]Khalid
Re: Info about random gmx

Posts above beat me to it.
Forum: Scripting Help 15/09/2015, 10:39 PM
Replies: 6
Views: 378
Posted By [KHK]Khalid
Re: Timer Minutes countdown?

Search! (http://lmgtfy.com/?q=samp+countdown+tutorials)
Forum: Scripting Help 25/08/2015, 04:14 PM
Replies: 3
Views: 181
Posted By [KHK]Khalid
Re: [HELP]Error !!

There's an extra semi-colon, remove it. It should be:

if(Robbed[playerid] == 0)
Forum: Scripting Help 21/08/2015, 10:43 PM
Replies: 4,485
Views: 461,868
Posted By [KHK]Khalid
Re: Little coding questions - For general minor queries 5

Use http://html-color-codes.info/colors-from-image/ if you don't have photoshop already.
Forum: Scripting Help 20/08/2015, 02:21 PM
Replies: 3
Views: 170
Posted By [KHK]Khalid
Re: Object functions

You're getting the tag mismatch warning because you have customrot declared as a float but assigned to an integer value (i.e -1). As for the other warnings, GetDynamicObjectRot takes 4 parameters I...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 10:49 PM.


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