SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 96
Search took 0.01 seconds.
Search: Posts Made By: Kasichok
Forum: Filterscripts 08/07/2020, 11:56 AM
Replies: 4,021
Views: 2,244,051
Posted By Kasichok
Re: Useful Functions

create an invisible vehicle for player


CreateInvisibleVehicleForPlayer(playerid, model)
{
new vehicle, Float:x, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
...
Forum: Scripting Help 04/05/2020, 05:36 PM
Replies: 10
Views: 282
Posted By Kasichok
Re: CreateBox

set alpha to low
Forum: Scripting Help 04/05/2020, 02:52 PM
Replies: 14
Views: 306
Posted By Kasichok
Re: Speedometer

The fs that the dude sent was the right one not the left one.
Forum: Scripting Help 28/04/2020, 04:53 PM
Replies: 3
Views: 78
Posted By Kasichok
Re: Question plugin

the FS @Proxus sent is wasting global text draw i recommend changing to player text draw
Forum: Filterscripts 23/04/2020, 09:08 AM
Replies: 236
Views: 68,035
Posted By Kasichok
Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

You need rotations include and its right there in the Thread https://github.com/Shiska/rotations/tree/1.2.0
Forum: Filterscripts 21/04/2020, 03:02 PM
Replies: 1,170
Sticky: Useful Snippets
Views: 602,184
Posted By Kasichok
Re: Useful Snippets

Simple Mute Script: (please remember to set player color or else his name in chat will be black)


#include <a_samp>
#include <foreach>
#include <sscanf2>
#include <zcmd>

static...
Forum: Scripting Help 17/04/2020, 09:06 PM
Replies: 1
Views: 114
Posted By Kasichok
Re: help VirtualWorld in car

SetPlayerVirtualWorld(playerid, playerid+1);
Forum: Scripting Help 14/04/2020, 10:57 AM
Replies: 2
Views: 235
Posted By Kasichok
Re: Ammunation dialog stuck (?)

Maybe you have more selectable textdraws in other scripts you added later that cause this
Forum: Includes 11/04/2020, 09:21 PM
Replies: 43
Views: 15,039
Posted By Kasichok
Re: Alternative Dialogs - Dialogs with the new design

Suggestion make it like zcmd


ALTD:dialog(playerid, dialogid, response, listitem)
{
//code here
return 1;
}
Forum: Scripting Help 09/04/2020, 01:06 PM
Replies: 9
Views: 220
Posted By Kasichok
Re: Prevent Damage

First use OnPlayerTakeDamage its more accurate OnPlayerGiveDamage is being called only if you gave damage to a player on your screen but not for real (desync) OnPlayerTakeDamage is being called if...
Forum: Scripting Help 08/04/2020, 01:21 PM
Replies: 3
Views: 242
Posted By Kasichok
Re: OnPlayerDeath doesn't called

Check your gamemode and other filterscripts if OnPlayerDeath callback return 0 in them, returning 0 OnPlayerDeath Will prevent other filterscripts from receiving this callback.
Forum: Tutorials 07/04/2020, 09:36 PM
Replies: 15
Views: 1,961
Posted By Kasichok
Re: Anti firing bullets from non-bullet weapon hack

it can be below if you dont return anything but must be before if you return a value
Forum: Tutorials 07/04/2020, 09:18 PM
Replies: 15
Views: 1,961
Posted By Kasichok
Re: Anti firing bullets from non-bullet weapon hack

Suggestion: check if playerid == hitid, a player can send fake data that he shoot himself that will spam server log
Forum: Tutorials 07/04/2020, 08:59 PM
Replies: 15
Views: 1,961
Posted By Kasichok
Re: Anti firing bullets from non-bullet weapon hack

Iv'e got only anti afk if that somehow prevents this
Forum: Scripting Help 07/04/2020, 07:09 PM
Replies: 6
Views: 168
Posted By Kasichok
Re: Filterscripts problem

ShowPlayerDialog(playerid, 1, style, caption[], text[], button[], button2[]);


edit the red it also might be like this


ShowPlayerDialog(playerid, DIALOG_REGISTER, style, caption[], text[],...
Forum: Tutorials 07/04/2020, 04:08 PM
Replies: 15
Views: 1,961
Posted By Kasichok
Re: Anti firing bullets from non-bullet weapon hack

Yea he prob edited

heres my debug:

playerid | weaponid | hittype | hitid
0 0 1 1


no crash no freeze
Forum: Tutorials 07/04/2020, 02:34 PM
Replies: 15
Views: 1,961
Posted By Kasichok
Forum: Tutorials 07/04/2020, 02:23 PM
Replies: 15
Views: 1,961
Posted By Kasichok
Re: Anti firing bullets from non-bullet weapon hack

weird i tried such thing on my server (R2) didnt crash anyone
Forum: Scripting Help 25/03/2020, 10:24 PM
Replies: 2
Views: 84
Posted By Kasichok
Re: Random Float!

new rand = random(sizeof(PosCosechador));
...PosCosechador[rand][0], PosCosechador[rand][1], PosCosechador[rand][2]
Forum: Scripting Help 22/03/2020, 06:38 PM
Replies: 5
Views: 227
Posted By Kasichok
Re: ShowPlayerMarkers Question

you can use SetPlayerMarkerForPlayer (https://wiki.sa-mp.com/wiki/SetPlayerMarkerForPlayer)

and make him invisible just set color alpha to 0


SetPlayerMarkerForPlayer(playerid, showplayerid,...
Forum: Scripting Help 22/03/2020, 04:08 PM
Replies: 5
Views: 197
Posted By Kasichok
Re: Check if player has specified word in their name

new name[24];
GetPlayerName(playerid, name, 24);
if(strfind(name, "_") != -1)
{
//found _
}
Forum: Maps 18/03/2020, 08:54 PM
Replies: 3
Views: 930
Posted By Kasichok
Forum: Scripting Help 07/03/2020, 01:30 AM
Replies: 10
Views: 313
Posted By Kasichok
Re: Random coordinates

sorry change to this i did a small mistake


RandCoords(minx, maxx, miny, maxy, &Float:x, &Float:y)
{
x = random(maxx-minx)+minx;
y = random(maxy-miny)+miny;
return 1;
}
Forum: Scripting Help 06/03/2020, 04:43 PM
Replies: 10
Views: 313
Posted By Kasichok
Re: Random coordinates

Create 100


new Rand[][]=
{
{minx, maxx, miny, maxy}, //use integer coords save from game
{minx, maxx, miny, maxy}
//and more
};
Forum: Scripting Help 06/03/2020, 04:38 PM
Replies: 10
Views: 313
Posted By Kasichok
Re: Random coordinates

1. nothing i made all you need in that function you have to take coords from ig and add to minx miny maxx maxy
like:
new Float:x, Float:y; //x and y is where we store the generated value...
Showing results 1 to 25 of 96

 

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


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