SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: Zeus666
Forum: Scripting Help 21/09/2018, 10:56 AM
Replies: 3
Views: 47
Posted By Zeus666
case question

switch(random(25))
{
case 0:
case 1:
..........
case 25:

OR

switch(random(26))
Forum: Scripting Help 21/09/2018, 07:35 AM
Replies: 5
Views: 95
Posted By Zeus666
Re: AMX (43472360) loaded ?

AMX (43639528) loaded

If the sequence was

AMX (43639528) failed to load

There would be bug. Your script is perfect normal and value inside the brackets are normal to be there.
Forum: Scripting Help 20/09/2018, 10:00 PM
Replies: 8
Views: 91
Posted By Zeus666
Re: Any way to adminlog?

create

Username (varchar 24)
Command (varchar 24)
Targetname (varchar 24)
Value (varchar 24)
Date (Timestamp)

then alter the table by adding "ID". use the A_I function and it's done
Forum: Scripting Help 20/09/2018, 09:55 PM
Replies: 8
Views: 91
Posted By Zeus666
Re: Any way to adminlog?

format(jQuery, MAX_QUERY_LENGTH, "INSERT INTO `"#adminlog"` (Username, Command, Targetname, Value, Data) VALUES ('%s', 'HEREMODIFYWITHCMDNAME', '%s', '%i', CURRENT_TIMESTAMP)", PlayerName(playerid),...
Forum: Scripting Help 20/09/2018, 09:31 PM
Replies: 8
Views: 91
Posted By Zeus666
Re: Any way to adminlog?

So I should stick with logs to important commands?
Forum: Scripting Help 20/09/2018, 09:29 PM
Replies: 8
Views: 91
Posted By Zeus666
Any way to adminlog?

I have created an admin log for each admincommand

ex: slap, /goto, /getcar etc.


via

mysql_tquery
Forum: Scripting Help 20/09/2018, 04:47 PM
Replies: 6
Views: 106
Posted By Zeus666
Re: Creating a stock of offline ban

and where should i put query ? and how can I insert IP got from query in the stock offlineban?
Forum: Scripting Help 20/09/2018, 03:42 PM
Replies: 6
Views: 106
Posted By Zeus666
Re: Creating a stock of offline ban

format(query, sizeof(query), "SELECT IP FROM `users` WHERE `Username`= '%s'", player_name);


?
Forum: Scripting Help 20/09/2018, 03:10 PM
Replies: 6
Views: 106
Posted By Zeus666
Creating a stock of offline ban

stock offlineban(player_name, player_banner, reason[], time = 0, system = 0)
{
if(system == 0)
{
if(strlen(reason) > MAX_REASON_LENGTH) return SendClientMessage(player_banner, 0xFFFFFF,...
Forum: Scripting Help 18/09/2018, 04:29 PM
Replies: 4
Views: 85
Posted By Zeus666
Re: Creating an offline admin ban

stock jBan(player_banned, player_banner, reason[], time = 0, system = 0)
{
if(system == 0)
{
if(strlen(reason) > MAX_REASON_LENGTH) return SendClientMessage(player_banner, 0xFFFFFF, ""chat"...
Forum: Scripting Help 18/09/2018, 04:25 PM
Replies: 14
Views: 197
Posted By Zeus666
Re: Textdraw

I don't know if I'm right, but you can try something like

if(pInfo[playerid][PhoneStatus] = 0)
{

Phone Status: ~r~%s(pInfo[playerid][PhoneStatus]);
}
else {
Phone Status:...
Forum: Scripting Help 18/09/2018, 04:19 PM
Replies: 4
Views: 85
Posted By Zeus666
Creating an offline admin ban

Hi. I've tried to make an offline admin ban (ban someone by "username" even that username doesn't exist, which inserts into mysql) but it gives me this errors


error 035: argument type mismatch...
Forum: Scripting Help 18/09/2018, 12:50 AM
Replies: 26
Views: 292
Posted By Zeus666
Re: OnPlayerWeaponEmpty

I found what's the problem. My em_callbacks are not responding. I tried to pu callbacks include but i got these errors

pawno\include\callbacks.inc(7) : error 010: invalid function or declaration...
Forum: Scripting Help 18/09/2018, 12:27 AM
Replies: 26
Views: 292
Posted By Zeus666
Re: OnPlayerWeaponEmpty

I tried to include callbacks.inc but it gave me the whole include with error.

I use (em_callbacks)
Forum: Scripting Help 18/09/2018, 12:20 AM
Replies: 26
Views: 292
Posted By Zeus666
Re: OnPlayerWeaponEmpty

No. I left my M4 with 1 ammo intentionatelly to see if message comes. it didn't.
Nor if i shot to 0 ammo.

I want if player has 0 or 1 ammo at his current weapon, to appear "be careful it's your...
Forum: Scripting Help 18/09/2018, 12:07 AM
Replies: 26
Views: 292
Posted By Zeus666
Re: OnPlayerWeaponEmpty

If player spams click and while shooting, his ammo passes the "1" and goes to "0"

Could be this a reason of what causes this?
Forum: Scripting Help 17/09/2018, 11:55 PM
Replies: 26
Views: 292
Posted By Zeus666
Re: OnPlayerWeaponEmpty

public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype != BULLET_HIT_TYPE_NONE)
{
if(!(-200.0 <= fX <= 200.0 ) || !(-200.0 <= fY <= 200.0)...
Forum: Scripting Help 17/09/2018, 11:13 PM
Replies: 26
Views: 292
Posted By Zeus666
Re: OnPlayerWeaponEmpty

I tried it with OnPlayerWeaponShot

Still nothing happens. At zero ammo nor message appear, nor the weapon gets into inventory
Forum: Scripting Help 17/09/2018, 10:08 PM
Replies: 26
Views: 292
Posted By Zeus666
Re: OnPlayerWeaponEmpty

warning 235: public function lacks forward declaration (symbol "OnPlayerEmptyWeapon")

I haven't updated my includes.
Forum: Scripting Help 17/09/2018, 09:48 PM
Replies: 26
Views: 292
Posted By Zeus666
Re: OnPlayerWeaponEmpty

Didn't work :(
Forum: Scripting Help 17/09/2018, 08:50 PM
Replies: 26
Views: 292
Posted By Zeus666
Forum: Scripting Help 17/09/2018, 04:45 PM
Replies: 26
Views: 292
Posted By Zeus666
Re: OnPlayerWeaponEmpty

I have already tried this. Did not work.
Forum: Scripting Help 17/09/2018, 04:31 PM
Replies: 13
Views: 135
Posted By Zeus666
Forum: Scripting Help 17/09/2018, 04:29 PM
Replies: 9
Views: 78
Posted By Zeus666
Re: Explaining how to transffm hexa to samp color code

The color is this

but i would like to put a black shadow on it or to be bold.
Forum: Scripting Help 17/09/2018, 04:26 PM
Replies: 9
Views: 78
Posted By Zeus666
Re: Explaining how to transffm hexa to samp color code

Oh. How can I set like a "shadow" to be black?
Showing results 1 to 25 of 500

 

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


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