SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 330
Search took 0.01 seconds.
Search: Posts Made By: Lokii
Forum: Includes 13/06/2019, 05:18 PM
Replies: 61
[Include] MapAndreas Include
Views: 41,139
Posted By Lokii
Re: MapAndreas Include

CMD:onground(playerid, params[])
{
new Float:x, Float:y, Float:z, Float:z2;
GetPlayerPos(playerid, x, y, z);
GetPointZPos(x, y, z2);
if(z >= (z2-2.0) && z <= (z2+2.0)) return...
Forum: Includes 12/06/2019, 10:23 AM
Replies: 101
Views: 44,463
Posted By Lokii
Re: Interactive clickable textdraw keypad system (Easy to use)

You actually dont need ms_stuff for this include to work and also there is This One (https://forum.sa-mp.com/showthread.php?t=667180) same as this one but with more features
Forum: Includes 11/06/2019, 03:51 PM
Replies: 0
[Include] Keypad (clickable)
Views: 462
Posted By Lokii
Keypad (clickable)

KEYPAD

current version (v1.2)

This include does the same job as this one (https://forum.sa-mp.com/showthread.php?t=329097) but got more features.


You must add
Forum: Scripting Help 07/06/2019, 07:37 PM
Replies: 6
Views: 118
Posted By Lokii
Re: Celsius problem

Work with all fonts.
Forum: Scripting Help 07/06/2019, 07:25 PM
Replies: 6
Views: 118
Posted By Lokii
Forum: Filterscripts 01/06/2019, 04:09 PM
Replies: 6
Views: 1,114
Posted By Lokii
Re: RESAPWN (GTA 5 Online Style)

1. Isnt needed anymore
2. im aware just didnt think people would merge it with their gm/fs (ik kinda stupid to think they wont)
3. OPU is too fast for the bar to update it sometimes appears empty...
Forum: Filterscripts 30/05/2019, 12:17 PM
Replies: 6
Views: 1,114
Posted By Lokii
Forum: Scripting Help 30/05/2019, 12:15 PM
Replies: 12
Views: 204
Posted By Lokii
Re: warning 213: tag mismatch

format(string, sizeof string, Player_Language[playerid] == 0 ? ("** Te has teletransportado a la posición: 'X' [ %f ] 'Y' [ %f ] 'Z' [ %f ] e interior ID[ %d ] **") : ("** You have been teleported to...
Forum: Scripting Help 29/05/2019, 09:09 PM
Replies: 11
Views: 129
Posted By Lokii
Re: Unknown cmd

You can do the same with send client message


SendClientMessage(playerid, color, language1);
SendClientMessage(playerid, color, language2);


anyway you can use this
Forum: Scripting Help 29/05/2019, 09:03 PM
Replies: 11
Views: 129
Posted By Lokii
Re: Unknown cmd

SendMessage(stuff)
{
//stuff
return 0;
}



if(PlayerInfo[playerid][pAdmin] < 420) return SendMessage(playerid, COLOR_RED, NOADMIN, NOADMIN2); //will return the value 0 and will cause...
Forum: Scripting Help 29/05/2019, 08:50 PM
Replies: 11
Views: 129
Posted By Lokii
Re: Unknown cmd

Does this function SendMessage return 0?
Forum: Filterscripts 29/05/2019, 02:58 PM
Replies: 6
Views: 1,114
Posted By Lokii
RESAPWN (GTA 5 Online Style)

RESPAWN

Respawn just like in gta 5 online, when you die you will be spectating the player that killed you, the screen will become grey with black box and progress bar on buttom right corner you...
Forum: Scripting Help 12/05/2019, 02:27 AM
Replies: 1
Views: 86
Posted By Lokii
Re: How do I disable car collision?

https://wiki.sa-mp.com/wiki/DisableRemoteVehicleCollisions
Forum: Filterscripts 06/04/2019, 02:42 PM
Replies: 1,163
Sticky: Useful Snippets
Views: 560,806
Posted By Lokii
Re: Useful Snippets

Anti Rapid Fire


#include <a_samp>

static const Rapid_Amount[17] =
{
10, 7, 5, 5, 10, 10, 25, 15, 15, 15, 25, 3, 4, 0, 0, 0, 75
};
Forum: Scripting Help 27/03/2019, 07:17 PM
Replies: 8
Views: 258
Posted By Lokii
Re: IF get vehicle speed?

if(GetVehicleSpeed(GetPlayerVehicleID(playerid), 2) <= 210)
if(GetVehicleSpeed(GetPlayerVehicleID(playerid), 2) >= 210)
Forum: Includes 28/02/2019, 01:33 PM
Replies: 7
Views: 1,315
Posted By Lokii
Re: stamina (control each player stamina)

#include <a_samp>
#include <stamina>
#include <progress2>
#include <zcmd>

new sbtime[MAX_PLAYERS];
new PlayerBar:StaminaBar[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
Forum: Includes 25/02/2019, 01:49 PM
Replies: 7
Views: 1,315
Posted By Lokii
Re: stamina (control each player stamina)

Ohh right sorry i was thinking you meant:


GetPlayerStamina(i);
foreach(new i : Player)


anyway updated
Forum: Includes 25/02/2019, 01:15 PM
Replies: 7
Views: 1,315
Posted By Lokii
Re: stamina (control each player stamina)

How else am i supposed to get players stamina? i cannot get players stamina outside the loop
Forum: Includes 25/02/2019, 10:48 AM
Replies: 7
Views: 1,315
Posted By Lokii
stamina (control each player stamina)

STAMINA

This include allows you to control player's stamina, You can make fat skins get tired faster than slim skins etc...


How to include:


#define FILTERSCRIPT
#define...
Forum: Filterscripts 25/02/2019, 10:02 AM
Replies: 4,004
Views: 2,064,158
Posted By Lokii
Re: Useful Functions

Float:FloatClamp(Float:value, Float:min, Float:max)
{
if(value < min || value > max)
{
if(value < min) return min;
if(value > max) return max;
}
return value;
}
Forum: Scripting Help 13/02/2019, 01:24 AM
Replies: 4
Views: 141
Posted By Lokii
Re: Help pls

new string[128], name[MAX_PLAYER_NAME];
Forum: Filterscripts 04/02/2019, 05:17 PM
Replies: 91
[FilterScript] 100 Pedestrians
Views: 32,280
Posted By Lokii
Re: 100 Pedestrians

Update you'r fcnpc plugin
Forum: Scripting Help 02/02/2019, 09:26 PM
Replies: 6
Views: 233
Posted By Lokii
Re: Random number.

ohh sorry my bad


ObiectTreasure = CreatePickup(RandomT[random(sizeof(RandomT))], 21, gRandomPositions[rand][0], gRandomPositions[rand][1], gRandomPositions[rand][2]);
Forum: Scripting Help 02/02/2019, 09:07 PM
Replies: 6
Views: 233
Posted By Lokii
Re: Random number.

ObiectTreasure = CreatePickup(random(sizeof(randobj)), 21, gRandomPositions[rand][0], gRandomPositions[rand][1], gRandomPositions[rand][2]);
Forum: Scripting Help 02/02/2019, 08:48 PM
Replies: 6
Views: 233
Posted By Lokii
Re: Random number.

You could do like this:


static const randobj[] =
{
1276, 1550, 1210, 1270, 1247
};

ObiectTreasure = CreateObject(random(sizeof(randobj)), //rest code
Showing results 1 to 25 of 330

 

All times are GMT. The time now is 07:38 PM.


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