• Welcome to Vice City Multiplayer.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Madara

#1
mIRC/pawn Scripting / Re: Pawn SUX!!
April 01, 2011, 07:28:57 PM
Quote from: Skirmant on April 01, 2011, 06:58:10 PM
Quote from: Madara on April 01, 2011, 06:43:26 PM
Detects movement of the coordinate Z.
This could be used to detect this elevation as a player or not?

The coordinate Z is mathematically and physically known as the 3th dimensional coordinate which we all recognize as height. Vice City is no exception. So yeah. It can be used to detect if the player moves up or down. How can you not know this anyway  ???

mIRC do not know, but in pawn i know.
#2
mIRC/pawn Scripting / Re: Pawn SUX!!
April 01, 2011, 06:43:26 PM
Quote from: Skirmant on April 01, 2011, 06:24:16 PM
mIRC (With VRockers DLL) :


on *:SIGNAL:vcmp.player.move:{
 ; $1 = ServerID, $2 = PlayerID, $3 = OldX, $4 = OldY, $5 = OldZ, $6 = NewX, $7 = NewY, $8 = NewZ

if  ($5 > $8) {
if ($calc($5 - $8) > 1) vcmp.msg $1 $2 You're fallin' motha f*cka.
}
}
 !.signal vcmp.move $1-
}  


Pawno:

Text version :p Make a timer that detects Z movement of every player at every 500 milliseconds or so, it's best to do this in a DLL for max speed. Make it store data into a 2d array. First dimention for player's id and the second one is for the old/new cord. Once the timer is done, use the same logic as I used in mIRC. Simply compare the older Z location with the newer one. That's pretty much it.

Detects movement of the coordinate Z.
This could be used to detect this elevation as a player or not?
#3
mIRC/pawn Scripting / Re: Pawn SUX!!
April 01, 2011, 06:04:21 PM
I use squirrel & Pawn, a pawn that will not let you use the SAMP, moreover, to leave a leguaje, let part of learning.
Although squirrel used to create scripts for a server vcmp, squirrel is not official yet in this forum. Only mIRC / Pawn
#4
ShowRoom (pawn) / Re: Kick to High Ping by Madara
April 01, 2011, 05:59:24 PM
Quote from: [CHG].Vercetty. on April 01, 2011, 02:32:36 PM
heii ola mmm soy KCHAT jejeje ske ya estaba registrado con estge nick xD bueno el caso es ke me marca error en esta linea

public AntiLaag()
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
    new sendmsn[256],plr = FindPlayerIDFromString(pInfo[NameSaved]);        <------------------ ESPECIFICAMENTE EN ESTA

   if (SpInfo[plr][CheckPing] == 1 && GetPlayerPing(plr) >= 1000) {
       format(sendmsn,256, "Server - Kicked: %s, ID: %d, Reason:[ High Ping - %d ].",gPlayers[plr],plr,GetPlayerPing(plr));
            SendClientMessageToAll(0x377DFFFF,sendmsn);
       Kick(plr);
       }
   }
}

====================================================================
Errores

F:\.......\......\......\gamemodes\DMGM3.5.pwn(2703) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
F:\......\......\......\gamemodes\DMGM3.5.pwn(2703) : warning 215: expression has no effect
F:\......\......\......\gamemodes\DMGM3.5.pwn(2703) : error 001: expected token: ";", but found "]"
F:\......\......\......\gamemodes\DMGM3.5.pwn(2703) : error 029: invalid expression, assumed zero
F:\......\......\......\gamemodes\DMGM3.5.pwn(2703) : fatal error 107: too many error messages on one line

Ahi deberias haber puesto un tipo de consulta de un nombre hacia un jugador, en este caso puedes ponerle gPlayers ( si es que lo tienes )
#5
mIRC/pawn Scripting / Re: Help /c freeze all
March 31, 2011, 08:49:34 AM
Quote from: tato on March 31, 2011, 02:41:30 AM
Quote from: Robd on March 30, 2011, 11:18:50 PM
That isn't the best for 2 reasons.

#1 if there are more players then you just got pwned
#2 the more functions you use the slower your serverr goes (that wouldnt affect it much, but still)
but what are u talking about
#6
mIRC/pawn Scripting / Re: Anti-Speed hack
March 31, 2011, 08:47:43 AM
Quote from: tato on March 31, 2011, 02:42:10 AM
Quote from: Robd on March 30, 2011, 11:16:34 PM
The SetGameSpeed doesn't affect hackers because it only sets the default speed for the game. Hacks just make the player able to warp to positions quickly. Therefore the setspeed doesnt affect them.
but there is a way to make that???

Make a check speed to every player, but use value speed 0 when spawn.
#7
mIRC/pawn Scripting / Re: Auto Event ??
March 31, 2011, 08:45:54 AM
Quote from: tato on March 31, 2011, 02:43:51 AM
Quote from: yazeen on March 30, 2011, 08:01:17 AM
Quote from: tato on March 30, 2011, 03:37:46 AM
Quote from: Castagna96 on March 09, 2011, 06:00:43 AM
SetPlayerWeapon(i,random(33),9999);
that exist?
but i am asking if this work?????????????

It will Work
but it give errors the random wep thing

Is: SetPlayerWeapon(i,random(33),9999) with a list of id al weapons.
#8
Quote from: Robd on March 29, 2011, 09:20:59 PM
This is actualy 90% GUPS that I modified, let me modify to add credits.

Ok, but need put rest commands with their duties of consultation relating to property, and so your system properties are 100% complete.
#9
Quote from: Scripter on March 29, 2011, 09:16:23 AM
else if(IsPlayerRange(playerid,-1000.6920, -868.6602, 12.3883, 20)) MessagePM(playerid, GREEN,"[Error] - You need to be in the Sunshine Autos!");

this not works madara
in !buycar and !sellcar
r there is anyway to fix it

Yes, I had already noticed that, I'll fix it later
#10
Quote from: yazeen on March 29, 2011, 07:04:44 AM
Quote from: sseebbyy on March 29, 2011, 07:00:19 AM
but... /c sellprop, /c buyprop ?

I need Property System !

Dude Take From Gups

I say "some things".
#11
A property system cotain:
function to check who are owner, shared, cost, development consulte of date property, commands related to the same, is property in vent, is property exist, etc...

This would be only a 1/4 part.

also contains things GUPS (some things)
#12
ShowRoom (pawn) / Re: Some useful script
March 28, 2011, 07:36:30 PM
Quote from: Robd on March 28, 2011, 03:10:22 AM
Quote from: tato on March 27, 2011, 08:33:37 AM
and what's wrong with the speedometer

wow i always forget stuff
add this to PlayerInfo

incar

and then

OnPlayerEnterVehicle

PlayerInfo[playerid][incar] = 1;
OnPlayerExitVehicle
PlayerInfo[playerid][incar] = 0;

Unnecessary function: "PlayerInfo [playerid] [incar] = 1;": "incar" because for that exist the function IsPlayerInAnyVehicle (playerid), and this function should be put in the "speedometer" next to "IsPlayerConnected (i)"
#13
ShowRoom (pawn) / Re: Kick to High Ping by Madara
March 28, 2011, 07:31:27 PM
Quote from: BIG[H] on March 28, 2011, 09:27:40 AM
Good Work Madara i like your ahh Individual Player Timer
plr = FindPlayerIDFromString(Player[playerid][Name]
);
But It in Already in Black Panther Before You 2 i added in my BlacK Panther XD

How?

Quote from: Charleyutton on March 28, 2011, 10:43:12 AM
Hahaha, are you calling a timer to loop round all the players every half a second? If you add much more to this script then it will lag the server down heavily.

True, but can change the seconds for other.
#14
ShowRoom (pawn) / Re: Kick to High Ping by Madara
March 28, 2011, 08:10:59 AM
English:
My function first check player if have ticket "CheckPing", be cause if not have that ticket, no check the player. And that ticket is sent when a player spawn, your value in player is 0 when connect, when spawn, your value player is 1, and is there when it starts to check the ping.

public OnPlayerSpawn(playerid,classid,teamid)
{
       SpInfo[playerid][CheckPing] = 1;// here sent to player your CheckPing value 1 for check if have high ping. while have value in 0 (when connected), can't are kick.

return 1;
}


QuoteAnd I'll post an anti-ping !

PS: Sorry for my bad english  Grin !

I upload thi function ago as 10 hours before your


EspaƱol:

Mi funcion primero cheka si tiene el ticket del jugador "CheckPing", por que si no tiene ese ticket, no cheka al jugador. y ese ticket es enviado cuanto se genera ( spawn ), puesto que su valor de ese tag esta en 0 cuando se conecta, cuando genera, su valor se convierte en 1, y con eso puede empezar la funcion a chekar si tiene alto ping.

public OnPlayerSpawn(playerid,classid,teamid)
{
        SpInfo[playerid][CheckPing] = 1;// aqui envia su CheckPing al valor 1 para checar si tiene alto ping. cuando el valor lo tiene en 0 (cuando se conecta), no puede kickearlo.

return 1;
}


QuoteAnd I'll post an anti-ping !

PS: Sorry for my bad english  Grin !

Esta funcion la subi hace 12 horas antes que tu.
#15
mIRC/pawn Scripting / Re: Icons Markers :D
March 27, 2011, 10:25:07 PM
:D