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: Kaliber
Forum: Scripting Help 28/03/2020, 03:48 AM
Replies: 6
Views: 87
Posted By Kaliber
Re: Question about desync and unknown command

Just write:

if(!IsPlayerConnected(id))

Besides that, load crashdetect and look in the server log :)
Forum: Scripting Help 16/03/2020, 07:47 PM
Replies: 2
Views: 102
Posted By Kaliber
Re: Plane Attitude

You can take directly the Z-axsis, it represents the height of the Plane...
Forum: Scripting Help 13/03/2020, 08:42 PM
Replies: 9
Views: 233
Posted By Kaliber
Re: Problem with RemoveBuilding?

Yes, i veryfied it in the game, they were removed.

Maybe you dont call it right for the player?

or you have somewhere createobejcts, that replace it...
Forum: Scripting Help 13/03/2020, 03:14 PM
Replies: 9
Views: 233
Posted By Kaliber
Re: Problem with RemoveBuilding?

I can remove these 4 streets perfectly with:

RemoveBuildingForPlayer(playerid, 5534, 1927.7031, -1754.3125, 12.4609, 0.25);
RemoveBuildingForPlayer(playerid, 5541, 1822.8906, -1725.2578, 12.4688,...
Forum: Scripting Help 13/03/2020, 02:16 AM
Replies: 9
Views: 233
Posted By Kaliber
Re: Problem with RemoveBuilding?

I dont know, where this should be?!

Can you send us the coordinates?

//Edit: The coords you have in the removebuilding are from the alhambra, i dont know, where there should be this place?!...
Forum: Scripting Help 12/03/2020, 01:37 PM
Replies: 1
Views: 79
Posted By Kaliber
Re: Load 4000 objects without unloading

You could try to optimize it with this:

https://forum.sa-mp.com/showthread.php?t=672867

Because you can only show 1000 Objects at a time, it is not smart to edit draw/streamdistances.

Let...
Forum: Scripting Help 12/03/2020, 02:01 AM
Replies: 1
Views: 90
Posted By Kaliber
Re: SetPlayerAmmo does not work with the parachute

stock RemovePlayerWeapon(playerid, weaponid)
{
new plyWeapons[13],plyAmmo[13];

for(new slot,wep,ammo; slot < 13; slot++)
{
GetPlayerWeaponData(playerid, slot, wep, ammo);

if(wep !=...
Forum: Scripting Help 11/03/2020, 07:21 PM
Replies: 4
Views: 149
Posted By Kaliber
Re: samp-server.exe taking too long to start

Dont use mysql_query...use mysql_tquery, look tutorials up, how it works.

Never use mysql_query again.
Forum: Scripting Help 10/03/2020, 10:24 PM
Replies: 2
Views: 126
Posted By Kaliber
Re: PreviewModelDialog increasing amx size

Before you include it, write something like this:

#undef MAX_PLAYERS
#define MAX_PLAYERS 25
#include <NowInclude>

The 25 should be the slot number from your server :)

Dont set it too high,...
Forum: Scripting Help 10/03/2020, 01:34 PM
Replies: 26
Views: 422
Posted By Kaliber
Re: SetObjectRot smooth/anim/slow

In your enum, you have a field, named "ID".

THAT IS WRONG!

In your array, you have no "IDs" you have "modelids".

Thats a huge diffrence.

You try to move the object by its "modelid" and...
Forum: Scripting Help 09/03/2020, 07:08 PM
Replies: 5
Views: 178
Posted By Kaliber
Re: Black white loading screen when connect

No, that is the Code of OnGameModeInit
You need to use one of the functions i mentioned
So use one, otherwise it will not work...
Forum: Scripting Help 09/03/2020, 07:01 PM
Replies: 26
Views: 422
Posted By Kaliber
Re: SetObjectRot smooth/anim/slow

You're mixing the model and the objectid.

#include <a_samp>
#include <streamer>

enum e_object
{
model,
Float:X,
Float:Y,
Forum: Scripting Help 08/03/2020, 10:06 PM
Replies: 26
Views: 422
Posted By Kaliber
Re: SetObjectRot smooth/anim/slow

And you are sure, you call it right?

Is every index right?
Forum: Scripting Help 08/03/2020, 09:13 PM
Replies: 3
Views: 81
Posted By Kaliber
Re: acks limit

crashdetect is no solution here.

The profiler plugin could be one.

Well, ackslimit occurs, when a function is called pretty pretty frequenetly.

Maybe you have a timer and use a loop there or...
Forum: Scripting Help 08/03/2020, 09:10 PM
Replies: 26
Views: 422
Posted By Kaliber
Re: SetObjectRot smooth/anim/slow

How do you create the object?
Forum: Scripting Help 08/03/2020, 08:23 PM
Replies: 9
Views: 175
Posted By Kaliber
Re: GetVehicleColor

I dont know, what you are trying to do...

But yes, you use the function the right way.
Forum: Scripting Help 08/03/2020, 08:20 PM
Replies: 26
Views: 422
Posted By Kaliber
Re: SetObjectRot smooth/anim/slow

Dude, read my text again...

MoveObject(Gate, 2540.95996, -1286.52002, 1043.11206+0.0001, 0.0001, 0.00000, 0.00000, 90.00000);

and to move it back:

MoveObject(Gate, 2540.95996, -1286.52002,...
Forum: Scripting Help 08/03/2020, 01:56 PM
Replies: 9
Views: 175
Posted By Kaliber
Re: GetVehicleColor

That cant be the case.

Maybe you have an older Version in your Pawno/include files...

Or you open the wrong Pawno.

Try it with an #error directive if it is really that Include, cant believe...
Forum: Scripting Help 08/03/2020, 01:50 PM
Replies: 9
Views: 175
Posted By Kaliber
Re: GetVehicleColor

Are you sure, you used that updated version? :confused:
Forum: Scripting Help 08/03/2020, 01:09 PM
Replies: 2
Views: 79
Posted By Kaliber
Re: Use textdraws across filterscripts

Yes you can do that.

You just have to give the ID from the TextDraw from the Gamemode to the Filterscript.

You can do that by using:


https://wiki.sa-mp.com/wiki/Setproperty
...
Forum: Scripting Help 08/03/2020, 01:06 PM
Replies: 9
Views: 175
Posted By Kaliber
Re: GetVehicleColor

Why not an Include?

You have to use the Include from Ryder for that: https://pastebin.com/zQb7HRH5

(Yes i know it was updated by DarkLouis, but it is from Ryder)
Forum: Scripting Help 08/03/2020, 01:04 PM
Replies: 5
Views: 200
Posted By Kaliber
Re: Attach Player to Vehicle?

Not really, no.

You could just port him back, if he fall from the vehicle...

But well...let him just surf on the vehicle xD
Forum: Scripting Help 08/03/2020, 12:40 AM
Replies: 5
Views: 178
Posted By Kaliber
Re: Black white loading screen when connect

You have to use https://wiki.sa-mp.com/wiki/SetSpawnInfo in OnPlayerRequestClass or https://wiki.sa-mp.com/wiki/AddPlayerClass in OnGameModeInit! :)
Forum: Scripting Help 08/03/2020, 12:38 AM
Replies: 5
Views: 200
Posted By Kaliber
Re: Attach Player to Vehicle?

Idea:

There are invisible walls. Just build a box, attach the box to the vehicle, put the player in the box.

And then let him play a animation. So he cant move, but move camera :)
Forum: Scripting Help 08/03/2020, 12:35 AM
Replies: 4
Views: 170
Posted By Kaliber
Re: Actor not created

1. You use CreateActor, but try to get the position with GetDynamicActor?

2. Says crashdetect something? :confused:

3. i is just the index, not the id from the actual actor. Shouldnt it be at...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 05:26 PM.


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