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 07/12/2019, 09:29 PM
Replies: 12
Views: 110
Posted By Kaliber
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
Posted By Kaliber
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
Posted By Kaliber
Re: OnPlayerConnect problem

Because the account is not loaded yet, so the ban variable is still 0 :)
Forum: Scripting Help 07/12/2019, 09:10 PM
Replies: 1
Views: 35
Posted By Kaliber
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
Posted By Kaliber
Re: HTTP and utf-8 encoding

Try:

<?php
header('Content-Type: text/html; charset=utf-8');
echo 'olá';
?>
Forum: Scripting Help 05/04/2019, 04:04 PM
Replies: 2
Views: 144
Posted By Kaliber
Re: How to improve this code to 1 public function

//Edit: My bad hahaha xD

Wanted to say, there are a lot of ways :D


new Cig[MAX_PLAYERS];

forward Test(playerid,x);

CMD:tests(playerid, params[])
Forum: Scripting Help 02/04/2019, 06:49 PM
Replies: 9
Views: 534
Posted By Kaliber
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
Posted By Kaliber
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
Posted By Kaliber
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
Posted By Kaliber
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
Posted By Kaliber
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
Posted By Kaliber
Re: Y_INI creates user file but doesn't write in it

Load the crashdetect Plugin and check the server_log if errors occur.
Forum: Scripting Help 21/03/2019, 09:54 AM
Replies: 6
Views: 179
Posted By Kaliber
Re: Y_INI creates user file but doesn't write in it

Probably you missed to upload some scriptfiles folders? :rolleyes:
Forum: Scripting Help 21/03/2019, 09:46 AM
Replies: 3
Views: 157
Posted By Kaliber
Re: [HELP] Death Bug

What does incccLowerBlood does?

And remove SpawnPlayer from OnPlayerDeath ;)
Forum: Scripting Help 21/03/2019, 09:43 AM
Replies: 2
Views: 130
Posted By Kaliber
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
Posted By Kaliber
Re: Question about size

Right, that is corret :)

https://dev.mysql.com/doc/refman/8.0/en/char.html
Forum: Scripting Help 20/03/2019, 12:33 PM
Replies: 2
Views: 213
Posted By Kaliber
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
Posted By Kaliber
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
Posted By Kaliber
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
Posted By Kaliber
Re: error 035: argument type mismatch (argument 2)

It depends, which mysql version you are using.

Maybe update to the newest, then this should be correct :)
Forum: Scripting Help 15/03/2019, 10:27 AM
Replies: 7
Views: 302
Posted By Kaliber
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
Posted By Kaliber
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
Posted By Kaliber
Re: Tips Textdraw Sound

What is with

1052, 1053, 1085, 1150
Forum: Scripting Help 14/03/2019, 09:28 AM
Replies: 7
Views: 285
Posted By Kaliber
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
Posted By Kaliber
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
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 07:52 AM.


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