SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 45
Search took 0.00 seconds.
Search: Posts Made By: Gameluner
Forum: Scripting Help 14/03/2019, 03:01 PM
Replies: 6
Views: 204
Posted By Gameluner
Re: event system help

new playersteleported;
CMD:tpevent(playerid, params[])
{
foreach(new i : Player){
if(EventOrganizer[i] == 1){
GetPlayerPos(i, Float, Float:y, Float:z);
}
if(playersteleported > 11) return...
Forum: Scripting Help 10/12/2018, 05:03 AM
Replies: 3
Views: 237
Posted By Gameluner
Forum: Scripting Help 19/06/2018, 03:47 AM
Replies: 4
Views: 415
Posted By Gameluner
Re: help limit ips

Hi,

You can do a whitelist with an array.

Bye.
Forum: Scripting Help 19/06/2018, 03:43 AM
Replies: 11
Views: 476
Posted By Gameluner
Re: job system help

Hi,

Because you aren't saving it at OnGameModeExit().
You can do it with the for command to save it for all players. But you also should make a saving command which saves it In-Game and everytime...
Forum: Scripting Help 19/06/2018, 03:38 AM
Replies: 2
Views: 353
Posted By Gameluner
Re: how do i make a cooldown for anti cmd spam?

Hi,

That's one way. Another system is to make a timer for the player, which disables the variable. And of course check if the variable is enabled on the Command start.
Ex. not for copying:

new...
Forum: Scripting Help 03/06/2018, 04:32 PM
Replies: 3
Views: 325
Posted By Gameluner
Re: Small invisible object for undercover cop camera

Hi,

One of the smallest objects is 3045. :)

Bye.
Forum: Scripting Help 10/04/2018, 08:37 AM
Replies: 5
Views: 698
Posted By Gameluner
Re: Server running on wrong port, can't access localhost:

Yeah, also when you add a new server to your favorites list without port, it adds 7777, so 8192 isn't used.
Forum: Scripting Help 04/04/2018, 03:26 PM
Replies: 2
Views: 724
Posted By Gameluner
Re: Vehicle Ownership System: Converting from DINI multi-file to single-file or database?

#include DOF2
#define DINI_CONVERT

And you can work with better system like when you worked with Dini. Good, or not? You have only to add

public OnGameModeInit()
{
DOF2_Exit();
}
Forum: Scripting Help 04/04/2018, 03:24 PM
Replies: 1
Views: 253
Posted By Gameluner
Re: Problems in /enter

What about to try "print("");" command? Because the "f" means formatted.
Forum: Scripting Help 02/04/2018, 03:27 PM
Replies: 5
Views: 329
Posted By Gameluner
Re: Make only specific players can join

You can edit that code of course. I made it within 3 minutes so I didn't look for mistakes. ;)
Forum: Scripting Help 01/04/2018, 09:22 AM
Replies: 5
Views: 329
Posted By Gameluner
Re: Make only specific players can join

You can make it with files.


stock pName(playerid)
{
new n[25];
GetPlayerName(playerid,n,sizeof(n));
return n;
}
Forum: Scripting Help 01/04/2018, 08:28 AM
Replies: 5
Views: 329
Posted By Gameluner
Re: Make only specific players can join

You can use this:

stock pName(playerid)
{
new n[25];
GetPlayerName(playerid,n,sizeof(n));
return n;
}

public OnPlayerConnect(playerid)
Forum: Scripting Help 28/03/2018, 01:55 PM
Replies: 2
Views: 297
Posted By Gameluner
Re: Compile Help

Else you can find this:

#undef MAX_PLAYERS
#undef MAX_HOUSES
You should define this:

#define MAX_PLAYERS 500
#define MAX_HOUSES 500
You have to define it, if this is missing:
Forum: Scripting Help 20/03/2018, 06:00 PM
Replies: 7
Views: 306
Posted By Gameluner
Re: Help with mute command

if(sscanf(params,"uis", id, minutes, reason)) return SendClientMessage(playerid,-1,"Използвай: /tmute [playerid] [time] [reason]");

Just a fast look, try this.
Forum: Scripting Help 17/03/2018, 12:03 PM
Replies: 11
Views: 1,596
Posted By Gameluner
Re: Adding image to server

I think you can't.
Forum: Scripting Help 11/02/2018, 09:18 AM
Replies: 3
Views: 355
Posted By Gameluner
Re: Error [pawn comp]

Use IZcmd (http://forum.sa-mp.com/showthread.php?t=576114).

#include izcmd
CMD:gotohouse(p,params[])
{
if(pl[playerid][pAdmin]==0) return 1;
if(!strval(params)) return...
Forum: Scripting Help 11/02/2018, 09:09 AM
Replies: 4
Views: 308
Posted By Gameluner
Re: Shortcuts on input

CMD:createeffect(playerid, params[])
{
new id, effect[15];
if(sscanf(params, "r,s[15]", id, effect))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /createeffect [PON/id]...
Forum: Scripting Help 29/12/2017, 01:19 PM
Replies: 21
Views: 784
Posted By Gameluner
Re: dynamic3dtextlable error

I don't understand. Sorry, I did my best, but now I don't understand.
Forum: Scripting Help 29/12/2017, 01:14 PM
Replies: 21
Views: 784
Posted By Gameluner
Re: dynamic3dtextlable error

https://pastebin.com/TeWAMr5p
Forum: Scripting Help 29/12/2017, 01:05 PM
Replies: 21
Views: 784
Posted By Gameluner
Re: dynamic3dtextlable error

I can't tell it in English well, but there are too much or not enough tabs, or spaces in that code. You should press tab when you put a { in your code, tab means 4 spaces. So there are too much or...
Forum: Scripting Help 29/12/2017, 12:58 PM
Replies: 21
Views: 784
Posted By Gameluner
Re: dynamic3dtextlable error

SetTimer("NameTag",3*1000, true);

or

SetTimer("NameTag",3000, true);




warning 217: loose indentation
Forum: Scripting Help 29/12/2017, 12:49 PM
Replies: 21
Views: 784
Posted By Gameluner
Re: dynamic3dtextlable error

forward NameTag(playerid);
public NameTag(playerid)
{
new Float:health,Float:armour, string[40];
GetPlayerHealth(playerid,health);
GetPlayerArmour(playerid,armour);
...
Forum: Scripting Help 29/12/2017, 12:39 PM
Replies: 21
Views: 784
Posted By Gameluner
Re: dynamic3dtextlable error

forward NameTag();
public NameTag()
{
new Float:health,Float:armour, playerid,string[40];
GetPlayerHealth(playerid,health);
GetPlayerArmour(playerid,armour);...
Forum: Scripting Help 29/12/2017, 12:15 PM
Replies: 21
Views: 784
Posted By Gameluner
Re: dynamic3dtextlable error

new Float:health,Float:armour, playerid,string;
Forum: Scripting Help 17/12/2017, 04:24 PM
Replies: 2
Views: 204
Posted By Gameluner
Re: Function With Tag [Help]

Move it to the top, or use as forward
Showing results 1 to 25 of 45

 

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


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