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.


Messages - Madara

Pages: [1] 2 3 4
1
mIRC/pawn Scripting / Re: How to put skin name?
« on: July 29, 2011, 09:35:28 am »
The title explains 50% of it..


I tried Gups gSkin not working..

If you like, use this:

Code: [Select]
stock GetNameFromSkinID(skinid)
{
    new skin[256];
    if (skinid == 0) skin = "Tommy Vercetti";
    if (skinid == 1) skin = "Cop";
    if (skinid == 2) skin = "Swat";
    if (skinid == 3) skin = "FBI";
    if (skinid == 4) skin = "Army";
    if (skinid == 5) skin = "Paramedic";
    if (skinid == 6) skin = "Fireman";
    if (skinid == 7) skin = "Golf guy #1";
    if (skinid == 9) skin = "Bum lady #1";
    if (skinid == 10) skin = "Bum lady #2";
    if (skinid == 11) skin = "Punk #1";
    if (skinid == 12) skin = "Lawyer";
    if (skinid == 13) skin = "Spanish lady #1";
    if (skinid == 14) skin = "Spanish lady #2";
    if (skinid == 15) skin = "Cool guy #1";
    if (skinid == 16) skin = "Arabic guy";
    if (skinid == 17) skin = "Beach lady #1";
    if (skinid == 18) skin = "Beach lady #2";
    if (skinid == 19) skin = "Beach guy #1";
    if (skinid == 20) skin = "Beach guy #2";
    if (skinid == 21) skin = "Office lady #1";
    if (skinid == 22) skin = "Waitress #1";
    if (skinid == 23) skin = "Food lady";
    if (skinid == 24) skin = "Prostitue #1";
    if (skinid == 25) skin = "Bum lady #2";
    if (skinid == 26) skin = "Bum guy #1";
    if (skinid == 27) skin = "Garbageman #1";
    if (skinid == 28) skin = "Taxi driver #1";
    if (skinid == 29) skin = "Hatian #1";
    if (skinid == 30) skin = "Criminal #1";
    if (skinid == 31) skin = "Hood lady";
    if (skinid == 32) skin = "Granny #1";
    if (skinid == 33) skin = "Business man #1";
    if (skinid == 34) skin = "Church guy";
    if (skinid == 35) skin = "Club lady";
    if (skinid == 36) skin = "Church lady";
    if (skinid == 37) skin = "Pimp";
    if (skinid == 38) skin = "Beach lady #3";
    if (skinid == 39) skin = "Beach guy #3";
    if (skinid == 40) skin = "Beach lady #4";
    if (skinid == 41) skin = "Beach guy #4";
    if (skinid == 42) skin = "Business man #2";
    if (skinid == 43) skin = "Prostitute #2";
    if (skinid == 44) skin = "Bum lady #3";
    if (skinid == 45) skin = "Bum guy #2";
    if (skinid == 46) skin = "Hatian #2";
    if (skinid == 47) skin = "Construction worker #1";
    if (skinid == 48) skin = "Punk #2";
    if (skinid == 49) skin = "Prostitute #2";
    if (skinid == 50) skin = "Granny #2";
    if (skinid == 51) skin = "Punk #3";
    if (skinid == 52) skin = "Business man #3";
    if (skinid == 53) skin = "Spanish lady #3";
    if (skinid == 54) skin = "Spanish lady #4";
    if (skinid == 55) skin = "Cool guy #2";
    if (skinid == 56) skin = "Business man #4";
    if (skinid == 57) skin = "Beach lady #5";
    if (skinid == 58) skin = "Beach guy #5";
    if (skinid == 59) skin = "Beach lady #6";
    if (skinid == 60) skin = "Beach guy #6";
    if (skinid == 61) skin = "Construction worker #2";
    if (skinid == 62) skin = "Golf guy #2";
    if (skinid == 63) skin = "Golf lady";
    if (skinid == 64) skin = "Golf guy #3";
    if (skinid == 65) skin = "Beach lady #7";
    if (skinid == 66) skin = "Beach guy #7";
    if (skinid == 67) skin = "Office lady #2";
    if (skinid == 68) skin = "Business man #5";
    if (skinid == 69) skin = "Business man #6";
    if (skinid == 70) skin = "Prostitute #2";
    if (skinid == 71) skin = "Bum lady #4";
    if (skinid == 72) skin = "Bum guy #3";
    if (skinid == 73) skin = "Spanish guy";
    if (skinid == 74) skin = "Taxi driver #2";
    if (skinid == 75) skin = "Gym lady";
    if (skinid == 76) skin = "Gym guy";
    if (skinid == 77) skin = "Skate lady";
    if (skinid == 78) skin = "Skate guy";
    if (skinid == 79) skin = "Shopper #1";
    if (skinid == 80) skin = "Shopper #2";
    if (skinid == 81) skin = "Tourist #1";
    if (skinid == 82) skin = "Tourist #2";
    if (skinid == 83) skin = "Cuban #1";
    if (skinid == 84) skin = "Cuban #2";
    if (skinid == 85) skin = "Hatian #3";
    if (skinid == 86) skin = "Hatian #4";
    if (skinid == 87) skin = "Shark #1";
    if (skinid == 88) skin = "Shark #2";
    if (skinid == 89) skin = "Diaz guy #1";
    if (skinid == 90) skin = "Diaz guy #2";
    if (skinid == 91) skin = "DBP security #1";
    if (skinid == 92) skin = "DBP security #2";
    if (skinid == 93) skin = "Biker #1";
    if (skinid == 94) skin = "Biker #2";
    if (skinid == 95) skin = "Vercetti guy #1";
    if (skinid == 96) skin = "Vercetti guy #2";
    if (skinid == 97) skin = "Undercover cop #1";
    if (skinid == 98) skin = "Undercover cop #2";
    if (skinid == 99) skin = "Undercover cop #3";
    if (skinid == 100) skin = "Undercover cop #4";
    if (skinid == 101) skin = "Undercover cop #5";
    if (skinid == 102) skin = "Undercover cop #6";
    if (skinid == 103) skin = "Rich guy";
    if (skinid == 104) skin = "Cool guy #3";
    if (skinid == 105) skin = "Prostitute #3";
    if (skinid == 106) skin = "Prostitute #4";
    if (skinid == 107) skin = "Love Fist #1";
    if (skinid == 108) skin = "Ken Rosenburg";
    if (skinid == 109) skin = "Candy Suxx";
    if (skinid == 110) skin = "Hilary";
    if (skinid == 111) skin = "Love Fist #2";
    if (skinid == 112) skin = "Phil";
    if (skinid == 113) skin = "Rockstar guy";
    if (skinid == 114) skin = "Sonny";
    if (skinid == 115) skin = "Lance";
    if (skinid == 116) skin = "Mercades";
    if (skinid == 117) skin = "Love Fist #3";
    if (skinid == 118) skin = "Alex Srub";
    if (skinid == 119) skin = "Lance (Cop)";
    if (skinid == 120) skin = "Lance";
    if (skinid == 121) skin = "Cortez";
    if (skinid == 122) skin = "Love Fist #3";
    if (skinid == 123) skin = "Columbian guy #1";
    if (skinid == 124) skin = "Hilary (Robber)";
    if (skinid == 125) skin = "Mercades";
    if (skinid == 126) skin = "Cam";
    if (skinid == 127) skin = "Cam (Robber)";
    if (skinid == 128) skin = "Phil (One arm)";
    if (skinid == 129) skin = "Phil (Robber)";
    if (skinid == 130) skin = "Cool guy #4";
    if (skinid == 131) skin = "Pizzaman";
    if (skinid == 132) skin = "Taxi driver #1";
    if (skinid == 133) skin = "Taxi driver #2";
    if (skinid == 134) skin = "Sailor #1";
    if (skinid == 135) skin = "Sailor #2";
    if (skinid == 136) skin = "Sailor #3";
    if (skinid == 137) skin = "Chef";
    if (skinid == 138) skin = "Criminal #2";
    if (skinid == 139) skin = "French guy";
    if (skinid == 140) skin = "Garbageman #2";
    if (skinid == 141) skin = "Hatian #5";
    if (skinid == 142) skin = "Waitress #2";
    if (skinid == 143) skin = "Sonny guy #1";
    if (skinid == 144) skin = "Sonny guy #2";
    if (skinid == 145) skin = "Sonny guy #3";
    if (skinid == 146) skin = "Columbian guy #2";
    if (skinid == 147) skin = "Thug #1";
    if (skinid == 148) skin = "Beach guy #8";
    if (skinid == 149) skin = "Garbageman #3";
    if (skinid == 150) skin = "Garbageman #4";
    if (skinid == 151) skin = "Garbageman #5";
    if (skinid == 152) skin = "Tranny";
    if (skinid == 153) skin = "Thug #5";
    if (skinid == 154) skin = "SpandEx guy #1";
    if (skinid == 155) skin = "SpandEx guy #2";
    if (skinid == 156) skin = "Stripper #1";
    if (skinid == 157) skin = "Stripper #2";
    if (skinid == 158) skin = "Stripper #3";
    if (skinid == 159) skin = "Store clerk";
    return skin;
}

Hope this helps, greetings  :).

2
Well, today I gonna show you how to make a Auto-Restart for servers. This is the output method
First, create a restart.txt file and paste this code in it
Code: [Select]
@echo off
TASKKILL /F /IM "vcmp-svr.exe"
CD "Location"
start vcmp-svr.exe

IMPORTANT: Rename Location with your target-zone of your server E.g: "C:\MyOwnServer" and make sure that your server executable is called vcmp-svr.exe ATTENTION: Not vcmp-srv.exe, it's vcmp-svr.exe [See the svr - srv ]

ATTENTION: This don't starts the server,just shuts it down and restart and works as a starter too but it won't have what to close so it may cause bugs.

then change the extension of .txt in to .bat

Run it and have fun!

Coded in exclusivity by Shadow
Here to make VC-MP better.

I already had seen an in SAMP, and has long i had knowledge of this,  pawn of VCMP not have the ability to auto-restart, and this has no effect on a server, because when you restart (with that method) players who are inside the server disconnects, or lost connection.

This may work for the next version of Pawn, to version 0.4 VCMP.

Greetings ;)

3
mIRC/pawn Scripting / Re: Whats wrong?
« on: June 16, 2011, 08:43:37 am »
[pawn]   else if (strcmp(cmd, "cloak", true) == 0) // <- here "{" not implemented
      SendClientMessage(playerid, COLOR_GREEN, "You have been cloaked!");
      SendClientMessage(playerid, COLOR_GREEN, "Your cloak will only be available until your death.");
      SendClientMessageToAll(COLOR_GREEN, "%s has cloak activated!");// <- "SendClientMessage" or "SendClientMessageToAll" are not functions for consult a argument or arguments. Only text or strings text wrapped, in thid case a format.
      RemovePlayerMarker(playerid);
      return 1;
   }[/pawn]

Line 1 of that code: have not implemented a key start, so, if you implement:
Code: [Select]
return 1;
}
Would need a "{" go above where the code starts.

Line 4 of that code: "SendClientMessage" or "SendClientMessageToAll" are not functions for consult a argument or arguments. Only text or strings text wrapped.

Fixed code:
[pawn]   else if (strcmp(cmd, "cloak", true) == 0) {
      new stmp[256];
      SendClientMessage(playerid, COLOR_GREEN, "You have been cloaked!");
      SendClientMessage(playerid, COLOR_GREEN, "Your cloak will only be available until your death.");
      format(stmp,256,"%s has cloak activated!",gPlayers[playerid]);//<- or other consult player name
      SendClientMessageToAll(COLOR_GREEN, stmp);
      RemovePlayerMarker(playerid);
      return 1;
   }[/pawn]

Hope this helps and regards ;)

4
mIRC/pawn Scripting / Re: killing spree needed [pawno]
« on: June 16, 2011, 01:21:03 am »
I posted a topic related "Killing Spree": http://forum.vicecitymultiplayer.com/index.php?topic=3128.0

5
mIRC/pawn Scripting / Re: What is wrong ? VIP System
« on: June 13, 2011, 02:08:39 am »
if that solves your problem, should close the topic.

6
mIRC/pawn Scripting / Re: What is wrong ? VIP System
« on: June 11, 2011, 12:38:07 pm »
Line 1 of this code: "cmdtext", depends where you put it in the beginning, definistes, your define (maybe) "cmd = strtok(cmdtext, idx);", therefore, when he writes something, identifies the first parameter and checks to see if it matches one of the command posts, if you put "cmdtext" this does not effect the command, as "cmdtext" sige sequence without waiting for the next token.

Line 4 of this code: "team" not defined, there should have been "tmp"

Code: [Select]
    if(strcmp(cmdtext,"makevip",true) == 0)
{
if(IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
new plr = FindPlayerIDFromString(tmp);
if(!strlen(team)) SendClientMessage(playerid,COLOR_LIGHT_RED,"USAGE: /c makevip [Nick/ID]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_LIGHT_RED,"Error: Unknown player");
else {
    if(IsVIP[plr] == 0)
    {
format(szMsg,256,"[VIP SYSTEM]: Admin %s made %s a V.I.P",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_YELLOW,szMsg);
IsVIP[plr] = 1;
}
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"[VIP SYSTEM]: You are not authorized to use this command");
}
return 1;
}

Line 1 of this code: Like the above, there must be "cmd" and not "cmdtext"
Code: [Select]
else if(strcmp(cmdtext,"takevip",true) == 0)
{
  if(IsPlayerAdmin(playerid))
   {
tmp = strtok(cmdtext, idx);
new plr;
plr = FindPlayerIDFromString(tmp);
if(!strlen(tmp)) SendClientMessage(playerid,COLOR_LIGHT_RED,"USAGE: /c takevip [Nick/ID]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_LIGHT_RED,"Error: Unknown player");
else {
if(IsVIP[plr] == 1)
  {
format(szMsg,256,"[VIP SYSTEM]: Admin %s took %s V.I.P privilegies",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_YELLOW,szMsg);
IsVIP[plr] = 0;
}
else
{
SendClientMessage(playerid,COLOR_RED,"[VIP SYSTEM]: That player is not in V.I.P Database");
}
}
}
return 1;
}




I took the time to fix and add some things more:
Code: [Select]
    else if(strcmp(cmd,"makevip",true) == 0)
    {
if(IsPlayerAdmin(playerid))
{
        tmp = strtok(cmdtext, idx);
        new plr = FindPlayerIDFromString(tmp);
if(!strlen(tmp)) SendClientMessage(playerid,COLOR_LIGHT_RED,"USAGE: /c makevip [Nick/ID]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_LIGHT_RED,"Error: Unknown player");
else
{
        if(IsVIP[plr] == 0)
        {
                            format(szMsg,256,"[VIP SYSTEM]: Admin %s made %s a V.I.P",gPlayers[playerid],gPlayers[plr]);
    SendClientMessageToAll(COLOR_YELLOW,szMsg);
    IsVIP[plr] = 1;
    /* data when specific here sends a "VIP"to a player */
}
else
{
           format(szMsg,256,"[VIP SYSTEM]: %s already have V.I.P Database", gPlayers[plr]);
           SendClientMessage(playerid,COLOR_LIGHT_RED,szMsg);
}
        }
}
else
{
SendClientMessage(playerid,COLOR_RED,"[VIP SYSTEM]: You are not authorized to use this command");
}
return 1;
    }
   
    else if(strcmp(cmd,"takevip",true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
        tmp = strtok(cmdtext, idx);
        new plr = FindPlayerIDFromString(tmp);
if(!strlen(tmp)) SendClientMessage(playerid,COLOR_LIGHT_RED,"USAGE: /c takevip [Nick/ID]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_LIGHT_RED,"Error: Unknown player");
else
{
      if(IsVIP[plr] == 1)
       {
           format(szMsg,256,"[VIP SYSTEM]: Admin %s took %s V.I.P privilegies",gPlayers[playerid],gPlayers[plr]);
           SendClientMessageToAll(COLOR_YELLOW,szMsg);
           IsVIP[plr] = 0;
           /* specific data here, taking away a "VIP"to a player */
     }
     else
     {
           format(szMsg,256,"[VIP SYSTEM]: %s is not in V.I.P Database", gPlayers[plr]);
           SendClientMessage(playerid,COLOR_LIGHT_RED,szMsg);
     }
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"[VIP SYSTEM]: You are not authorized to use this command");
}
return 1;
    }

I have tested and works, if you miss a detail, ,can which the command may not create what you want.

Remember to not put a "else if " and put down this "if".

I hope that works for you and greetings ;)

7
Copy & paste, no coincidence since you knew about squirrel wiki

8
mIRC/pawn Scripting / Re: Pawn SUX!!
« on: April 01, 2011, 09:28:57 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.

9
mIRC/pawn Scripting / Re: Pawn SUX!!
« on: April 01, 2011, 08:43:26 pm »
mIRC (With VRockers DLL) :

Code: [Select]
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?

10
mIRC/pawn Scripting / Re: Pawn SUX!!
« on: April 01, 2011, 08: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

11
mIRC/pawn Scripting / Re: Help /c freeze all
« on: March 31, 2011, 10:49:34 am »
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

12
mIRC/pawn Scripting / Re: Anti-Speed hack
« on: March 31, 2011, 10:47:43 am »
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.

13
mIRC/pawn Scripting / Re: Auto Event ??
« on: March 31, 2011, 10:45:54 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.

14
mIRC/pawn Scripting / Re: Icons Markers :D
« on: March 28, 2011, 12:25:07 am »
:D

15
mIRC/pawn Scripting / Re: ??? Help!!! Anti-Lag in gups
« on: March 28, 2011, 12:19:39 am »
Follow this link where have that function make by me: http://forum.vicecitymultiplayer.com/index.php?topic=2597.0

Pages: [1] 2 3 4