SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 109
Search took 0.00 seconds.
Search: Posts Made By: MichiCZ
Forum: Scripting Help 14/04/2020, 03:23 AM
Replies: 4
Views: 122
Posted By MichiCZ
Cool Time until NPC reach a point

Hello guys, i have NPC bus recorded amd bus stop created. I want to make 3D text label, which is saying when bus arrive. I calculated how long it takes to bus from spawn to stop in Blueberry, how...
Forum: Scripting Help 13/04/2020, 06:35 PM
Replies: 2
Views: 106
Posted By MichiCZ
Re: DOF2 - Register of new player PROBLEM

There are probably stats stored with players ID, u can set players stats to 0 in OnPlayerConnect and load them after login, if is the new player, set his stats to 0 and create his file stats to 0
Forum: Filterscripts 06/04/2020, 08:36 PM
Replies: 5
Views: 1,201
Posted By MichiCZ
Dynamic NoKill zone creator

Hello, this is new version of my old FS for In-Game NoKill zone creator

Preview: https://www.youtube.com/watch?v=VWUcQ5BprY0&feature=youtu.be

https://i.imgur.com/S5Fc8MS.png

Commands (only...
Forum: Scripting Help 05/04/2020, 07:33 PM
Replies: 3
Views: 165
Posted By MichiCZ
Re: OnPlayerClickPlayer

Sorry, edited
Forum: Scripting Help 05/04/2020, 07:12 PM
Replies: 6
Views: 152
Posted By MichiCZ
Re: Converting BanTime into a date (Ban expired on: etc)

This is format like

dd/mm/yyyy hh/mm/ss

Month string/dd/yyyy hh/mm/ss

etc...


switch( _form )
Forum: Scripting Help 05/04/2020, 07:03 PM
Replies: 6
Views: 152
Posted By MichiCZ
Re: Converting BanTime into a date (Ban expired on: etc)

You can use timestamp when u need convert unix time to string, for example, i am using for VIP in my script


if(PlayerInfo[playerid][VIP] == 1)
{
if(PlayerInfo[playerid][VIP_Time]...
Forum: Scripting Help 05/04/2020, 06:52 PM
Replies: 6
Views: 152
Posted By MichiCZ
Re: Converting BanTime into a date (Ban expired on: etc)

Use timestamp

new string[256];
format(string, sizeof(string), "[Server] Your ban expire %s!", timestamp(BanTime, 0));
SCM(playerid, COLOR_WHITE, string);


stock timestamp( timestamp, _form=0...
Forum: Scripting Help 05/04/2020, 06:42 PM
Replies: 3
Views: 165
Posted By MichiCZ
OnPlayerClickPlayer

Hello, i am trying to make "ShowStatsL for admins using OnPlayerClickPlayer, but problem is, when i click someone, dialog is show to him, not for me. No errors or warnings.


public...
Forum: Includes 04/04/2020, 10:38 PM
Replies: 1,351
Views: 335,929
Posted By MichiCZ
Forum: Includes 04/04/2020, 09:51 PM
Replies: 1,351
Views: 335,929
Posted By MichiCZ
Re: Nex-AC - Anticheat system

OnPlayerTakeDamage is fixed, but still have unused addsiren and CreateVehicle is not redefined, i have newest includes


C:\Users\Michal\Desktop\SAMP\pawno\include\nex-ac.inc(2064) : warning 202:...
Forum: Scripting Help 04/04/2020, 08:52 PM
Replies: 12
Views: 275
Posted By MichiCZ
Re: Server crash if someone disconnect

Okay, i think i found problem. I dont know why, but if i comment //#include <nex-ac> (https://forum.sa-mp.com/showthread.php?t=579963), players are not reconnected...
Forum: Scripting Help 04/04/2020, 08:34 PM
Replies: 12
Views: 275
Posted By MichiCZ
Re: Server crash if someone disconnect

Players lose connection, after few second are they reconnected, but their stats are lost.

Grandlarc works perfect, if i run my gamemode with empty OnPlayerDisconnect, everything works
Forum: Scripting Help 04/04/2020, 08:14 PM
Replies: 12
Views: 275
Posted By MichiCZ
Re: Server crash if someone disconnect

Its hosted (www.fakaheda.eu), CPU does not cross 2%
Forum: Scripting Help 04/04/2020, 08:06 PM
Replies: 12
Views: 275
Posted By MichiCZ
Re: Server crash if someone disconnect

public OnPlayerUnpause(playerid)
{
Delete3DTextLabel(AFKlabel[playerid]);
print("23");
return 1;
}
Forum: Scripting Help 04/04/2020, 07:56 PM
Replies: 12
Views: 275
Posted By MichiCZ
Re: Server crash if someone disconnect

crashlog.txt is not created, crashdetect is loaded succesfully, Server Shutting Down not showing in server log, seems like it been restarted.

Debbuged, here is result


public...
Forum: Scripting Help 04/04/2020, 07:13 PM
Replies: 12
Views: 275
Posted By MichiCZ
Re: Server crash if someone disconnect

Still crashing, tested with two players with nicks "_Michael_" and "HugoBoss"
Forum: Scripting Help 04/04/2020, 06:03 PM
Replies: 12
Views: 275
Posted By MichiCZ
Server crash if someone disconnect

Crashdetect say nothing, log is clear, no errors, no warnings



public OnPlayerDisconnect(playerid, reason)
{
SetPlayerLineLong(playerid, 0.000000);
FP_OnPlayerDisconnect(playerid);
...
Forum: Tools and Files 03/04/2020, 08:30 PM
Replies: 25
Views: 18,997
Posted By MichiCZ
Forum: Scripting Help 31/03/2020, 07:35 PM
Replies: 4
Views: 198
Posted By MichiCZ
Re: MySQL TOP 5

new Cache:result;
result = mysql_query(MySQL:1, "SELECT USERNAME, SCORE FROM `PLAYERS` ORDER BY `SCORE` DESC LIMIT 5;");
if(result)
{
new Name[5][24], Skore[5];
...
Forum: Scripting Help 30/03/2020, 09:01 PM
Replies: 4
Views: 198
Posted By MichiCZ
MySQL TOP 5

Hello, i found one old thread for this function, but its for old StrickenKids MySQL

I want to use BlueG MySQL, but i dont know how to build query

Old CODE:


mysql_query("SELECT username,...
Forum: Scripting Help 29/03/2020, 04:16 PM
Replies: 21
Views: 507
Posted By MichiCZ
Re: Problem interior

You must store and load coordinates as float, if u putted it manually, use . no ,

and make sure if your columns are set for storing float
Forum: Scripting Help 29/03/2020, 02:51 PM
Replies: 21
Views: 507
Posted By MichiCZ
Re: Problem interior

Are you sure you loaded coordinates correctly?

IntInfo[houseinterior][IntPosX]
IntInfo[houseinterior][IntPosY]
IntInfo[houseinterior][IntPosZ]
Forum: Scripting Help 29/03/2020, 02:45 PM
Replies: 5
Views: 164
Posted By MichiCZ
Re: /changename already exist name help

Will it works like this?
Forum: Scripting Help 29/03/2020, 02:39 PM
Replies: 4
Views: 132
Posted By MichiCZ
MySQL save while Kick/Ban

Hello guys, can u please help me with my problem?

Using MySQL for saving stats, everythinks work fine while normal disconnect, but when i call Kick or Ban player, his account didnt save (save with...
Forum: Scripting Help 29/03/2020, 02:36 PM
Replies: 21
Views: 507
Posted By MichiCZ
Re: Problem interior

You have not defined interiors positions... Every interior have their on "Spawn point". Example:
Interior: Jefferson motel
ID:15
X,Y,Z: 2215.454833,-1147.475585,1025.796875
Showing results 1 to 25 of 109

 

All times are GMT. The time now is 02:01 AM.


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