Forum: Scripting Help
07/12/2019, 09:29 PM
|
Replies: 12
Views: 110
Re: OnPlayerConnect problem
This would not work.
Because if you ban someone...and he leaves the server and another player comes online, he got the playerid of the player before him. But he is not realated to this person...
...
|
Forum: Scripting Help
07/12/2019, 09:21 PM
|
Replies: 12
Views: 110
Re: OnPlayerConnect problem
Well, sure, you could load only the ban variable from the database (or File System?) and check the value like you did :)
|
Forum: Scripting Help
07/12/2019, 09:16 PM
|
Replies: 12
Views: 110
|
Forum: Scripting Help
07/12/2019, 09:10 PM
|
Replies: 1
Views: 35
Re: CMD.
Try:
CMD:gstats(playerid, params[])
{
if(PInfo[playerid][pgangID] == -1) return SCM(playerid, COLOR_TOMATO, "* You must be in a gang to use this command!");
new string[250], id, gangID;...
|
Forum: Scripting Help
20/11/2019, 07:17 PM
|
Replies: 5
Views: 174
|
Forum: Scripting Help
05/04/2019, 04:04 PM
|
Replies: 2
Views: 144
|
Forum: Scripting Help
02/04/2019, 06:49 PM
|
Replies: 9
Views: 534
Re: Explode vehicle immediately
If you kill them in the car, that bugs.
You should use SetPlayerPos and remove them with that function out of the car and kill them then.
Its a stupid and annoying bug...
|
Forum: Includes
23/03/2019, 12:24 AM
|
Replies: 9
Views: 1,010
Re: Little Unneeded Functions
There is even a function you could use, that would be even faster and simpler xD
stock bool:IsCoordNearCoord(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2, Float:radius)
{
return...
|
Forum: Scripting Help
22/03/2019, 04:14 PM
|
Replies: 13
Views: 377
Re: OnPlayerSwitchWeapon?
Just check OnPlayerKeyStateChange ;)
There you can check if he presses Q and can instant check if the weapon got changed :)
So you dont need unnecessary checks :)
|
Forum: Scripting Help
22/03/2019, 10:51 AM
|
Replies: 7
Views: 363
Re: Custom Server time
Use https://wiki.sa-mp.com/wiki/SetPlayerTime
That is synced.
Just use a global variable and increase the minutes and hours :)
|
Forum: Scripting Help
21/03/2019, 06:10 PM
|
Replies: 2
Views: 96
Re: Hooking hooked functions
The short answer, yes.
Just the normal way, just the name has to be diffrent then in the other hooks.
https://forum.sa-mp.com/showthread.php?t=392061
|
Forum: Scripting Help
21/03/2019, 10:42 AM
|
Replies: 6
Views: 179
|
Forum: Scripting Help
21/03/2019, 09:54 AM
|
Replies: 6
Views: 179
|
Forum: Scripting Help
21/03/2019, 09:46 AM
|
Replies: 3
Views: 157
|
Forum: Scripting Help
21/03/2019, 09:43 AM
|
Replies: 2
Views: 130
Re: [HELP] Tires
There was made a nice Include for :)
https://forum.sa-mp.com/showthread.php?t=620512
|
Forum: Scripting Help
21/03/2019, 09:28 AM
|
Replies: 1
Views: 120
|
Forum: Scripting Help
20/03/2019, 12:33 PM
|
Replies: 2
Views: 213
Re: Bulletproof tires
Besides your post is really unfriendly, you should be more polite, here is some code:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new panels, doors, lights, tires;
...
|
Forum: Scripting Help
19/03/2019, 12:42 PM
|
Replies: 2
Views: 132
Re: Quick question
No, nothing that have to do with the spawn process.
But you could start a timer in OnPlayerSpawn, so that would trigger a callback after OnPlayerSpawn :)
|
Forum: Scripting Help
15/03/2019, 10:58 AM
|
Replies: 7
Views: 302
Re: Random Float Number
Yes dude, i understood that.
But it seems, you dont understand the use of a function, so read some basics: https://wiki.sa-mp.com/wiki/Scripting_Basics
You just have to write:
floatround(x,...
|
Forum: Scripting Help
15/03/2019, 10:29 AM
|
Replies: 2
Views: 133
|
Forum: Scripting Help
15/03/2019, 10:27 AM
|
Replies: 7
Views: 302
Re: Random Float Number
Just check the wiki: https://wiki.sa-mp.com/wiki/Floatround
There you see, that you have diffrent rounding Methods: https://wiki.sa-mp.com/wiki/Floatround_method
For example:
...
|
Forum: Scripting Help
14/03/2019, 11:38 PM
|
Replies: 4
Views: 189
Re: Help
Use the streamer: https://forum.sa-mp.com/showthread.php?t=102865
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid =...
|
Forum: Scripting Help
14/03/2019, 12:54 PM
|
Replies: 8
Views: 329
|
Forum: Scripting Help
14/03/2019, 09:28 AM
|
Replies: 7
Views: 285
Re: Vehicle stuck in the air on SetVehiclePos
This x+2 and y+2 will not work everytime.
That depends on, where you are look and standing.
The correct way, would to use it like this:
CMD:getcar(playerid, params[]) {
new vid, Float:x,...
|
Forum: Scripting Help
14/03/2019, 09:21 AM
|
Replies: 8
Views: 329
Re: Tips Textdraw Sound
You know there is a list?
https://wiki.sa-mp.com/wiki/SoundID
Go and try them out :)
maybe its sth like: 4202, 4203 or 6400
|