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: coool
Forum: Scripting Help 26/06/2020, 03:22 PM
Replies: 5
Views: 109
Posted By coool
Re: Unix to human time

Variables in which you want to store them, these are called reference variables, and the phenomenon is called 'call by reference'

new year, month, day, hours, minutes, second;...
Forum: Scripting Help 23/06/2020, 05:26 AM
Replies: 6
Views: 142
Posted By coool
Re: help with this command please

query the database and get players' names or anything else who have the same faction
"SELECT `name` FROM `players` WHERE `Faction` = %e", PlayerInfo[playerid][jMiembro]
then, loop the returned...
Forum: Everything and Nothing 21/06/2020, 03:18 PM
Replies: 5
Views: 379
Posted By coool
Re: Flowchart

I don't even know what it is :D
And from the inactivity of this thread I doubt fellow sa-mpers know about it.
Forum: Gamemode Scripts 18/05/2020, 04:35 AM
Replies: 12
Views: 2,097
Posted By coool
Forum: Scripting Help 14/05/2020, 08:50 AM
Replies: 1
Views: 69
Posted By coool
Re: Question about callback in FS

maybe the first filterscript in server.cfg gets called first. You can check it by adding different print statements under OnDialogResponse and see which one gets called.
Forum: Filterscripts 14/05/2020, 05:46 AM
Replies: 4
Views: 1,676
Posted By coool
Re: GPS System with Arrows on road.

Good, I also searched for the same arrows on road GPS system in the past after seeing it in Crazy Bob's CnR.
P.S can you make another mirror pastebin doesn't work for me.
Forum: Scripting Help 12/05/2020, 10:29 AM
Replies: 4
Views: 134
Posted By coool
Re: Contact List - Phone Textdraw

I have posted code for the per page stuff for example if there are 15 contacts clicking up button will change contact#1 to contact#9 and contact#8 to contact#15, you can also make it to change one by...
Forum: Scripting Help 12/05/2020, 04:41 AM
Replies: 12
Views: 218
Posted By coool
Re: extract values

You have to execute the query, and there was a mistake in your query
new query[100];
mysql_format(db, query, sizeof(query), "SELECT 'minFPS' FROM `config`");
mysql_tquery(db, query,...
Forum: Scripting Help 11/05/2020, 05:57 AM
Replies: 4
Views: 111
Posted By coool
Re: Restricting vehicle IDs

new vehicleIDs[] = {406, 407, 416, 417, 425, 427, 428, 430, 432, 435, 447, 449, 450, 476, 486, 497, 520, 523, 528, 532, 537, 538, 544, 548, 563, 569, 570, 582, 584, 590, 591, 596, 597, 598, 599, 601,...
Forum: Scripting Help 04/05/2020, 04:59 PM
Replies: 10
Views: 268
Posted By coool
Re: CreateBox

If it is transparent how do you know it exists?
Forum: Scripting Help 04/05/2020, 03:29 PM
Replies: 3
Views: 88
Posted By coool
Re: How can i detect if player spraying

Check for his animation or check for a particular key when player is holding spray can.
Forum: Scripting Help 29/04/2020, 03:18 PM
Replies: 3
Views: 115
Posted By coool
Re: Calculating Kilometer/s (only) travelled

Do you want distance (which you say in the post)? or speed (which you say in the title), if you want distance use GetDistanceFromPoint() and divide the result by 1000 to convert meters into...
Forum: Gamemode Scripts 21/04/2020, 10:12 AM
Replies: 233
Views: 87,570
Posted By coool
Re: ... || ZOMBIE APOCALYPSE || ...

Didn't knew. I have the original(v1.01) zombie apocalypse mode but I don't know if it's allowed to give or not.
Forum: Gamemode Scripts 20/04/2020, 02:33 PM
Replies: 233
Views: 87,570
Posted By coool
Forum: Scripting Help 01/04/2020, 02:56 PM
Replies: 8
Views: 228
Posted By coool
Re: About pawn syntax

In case if you don't know you can use "#pragma semicolon 0" to avoid ; for every statement.
Forum: Scripting Help 23/03/2020, 05:14 AM
Replies: 2
Views: 150
Posted By coool
Re: Gta sa mission textdraw

You can take x,y of a textdraw from picture. Resize the picture to 640x448 and find the x,y with some tool like MS-Paint.
https://imgur.com/a/QfUesi7
In your case it is 30x24
Forum: Scripting Help 22/03/2020, 05:11 PM
Replies: 5
Views: 186
Posted By coool
Re: Check if player has specified word in their name

What do you want to detect/find "SAMP_" or "SAMP_(random numbers or words)" if you want to detect the former see post#2 if you want to detect the latter you have to use regex (there should be other...
Forum: Scripting Help 22/03/2020, 02:48 PM
Replies: 2
Views: 136
Posted By coool
Re: OnPlayerWeaponShot help

If it doesn't get detect on OnPlayerWeaponShot then try OnPlayerTake(Give)Damage
Forum: Scripting Help 21/03/2020, 04:02 PM
Replies: 2
Views: 104
Posted By coool
Re: help trash

Do you disable spectate mode
Forum: Client Support 21/03/2020, 03:57 PM
Replies: 4
Views: 1,640
Posted By coool
Forum: Maps 21/03/2020, 02:05 PM
Replies: 6
Views: 1,546
Posted By coool
Forum: Scripting Help 21/03/2020, 05:37 AM
Replies: 4
Views: 205
Posted By coool
Re: is there a way to make this code shorter?

Yes you can make it shorter, as we know that the code inside if Injured[playerid] == x && Dead[playerid] == 0
is same for every 'weaponid'. We just need to know 'x' (refer to the above code)...
Forum: Scripting Help 24/02/2020, 08:33 AM
Replies: 4
Views: 164
Posted By coool
Re: How can i make my player always spawn with camera behind back

You have to put it in OnPlayerSpawn not under class selection.
Forum: Scripting Help 04/01/2020, 09:39 AM
Replies: 6
Views: 274
Posted By coool
Re: Optimization

I don't have an optimization (you don't need it) but variables have 0 value by default.
Forum: Scripting Help 03/01/2020, 12:27 PM
Replies: 4
Views: 157
Posted By coool
Re: Whats the difference?

The compiler will take care of white space.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 09:13 PM.


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