• 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

#61
mIRC/pawn Scripting / Re: GUPS 1.6 pawno.. question
December 19, 2010, 06:02:32 AM
If you mean a server Pawn, maybe that is wrong will be compiled, or also a problem that I have seen in the console, when receiving several characters, as they crash in *,$,/,%,&, the server, well, this happens at a certain time, it does quickly, which is why I recommend that you put on your server auto kick players that contain these characters (this is when a player would do just this in connection to the server ).

I hope I've helped a little.

Greetings ::)
#62
mIRC/pawn Scripting / Re: 1 Request
December 16, 2010, 10:47:52 AM
How's that "autokill", for what, and in reward the "headshot" that you want in the "OnPlayerKill", but first is to GUPS or FBS (pawn scripts or scripts squirrel). ???
#63
I isn't for you, for where's written "wep", instead of putting "! wep", because I guess that goes in the "OnPlayerText (playerid, cmdtext [])", right?, well, try it with this:

else if (strcmp(cmd, "!we", true) == 0 || strcmp(cmd, "!wep", true) == 0) {
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "** pm >> You need to login first!");
else if (!strlen(tmp)) format(szMsg,256,"** pm >> [Syntax] - The correct use: %s [weapon/id].", cmdtext) && SendClientMessage(playerid,COLOR_GREEN,szMsg);
else {
                         new wep = FindWepIDFromString(tmp);
 format(szMsg,256,"** pm >> Recived Weapon: %s - Ammo: 9999.",gWeapons[wep]);
 SendClientMessage(playerid,COLOR_GREEN,szMsg);
 SetPlayerWeapon(playerid,wep,9999);
}
return 1;
}
#64
Paste script of !buyprop
#65
QuoteTerminatorupgrade 2 :
Quoteelse if (strcmp(cmd, "!Stubby", true) == 0) {
      new tmp2[256], wep;
     tmp = strtok(cmdtext, idx), tmp2 = strtok(cmdtext, idx);
     if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
     else {
        SetPlayerWeapon(playerid,21,9999);
     }
     return 1;
  }

No need to:
      new tmp2 [256], wep;
      tmp = strtok (cmdtext, idx), tmp2 = strtok (cmdtext, idx);
Since these indicating a direct weapon, in this case the stubby.

Johnx Now, you do not want to type /c wep [weapon/id] [ammo], you just type in the weapon you want and nothing else, that is, /c wep [weapon/id], or am I wrong? , well, here I leave the command, just replace it for you have and when you type / c wep, you just ask for the weapon, not ammunition. (you can type either /c we or /c wep)

else if (strcmp(cmd, "we", true) == 0 || strcmp(cmd, "wep", true) == 0) {
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "** pm >> You need to login first!");
else if (!strlen(tmp)) format(szMsg,256,"** pm >> [Syntax] - The correct use: /c %s [weapon/id].", cmdtext) && SendClientMessage(playerid,COLOR_GREEN,szMsg);
else {
                         new wep = FindWepIDFromString(tmp);
 format(szMsg,256,"** pm >> Recived Weapon: %s - Ammo: 9999.",gWeapons[wep]);
 SendClientMessage(playerid,COLOR_GREEN,szMsg);
 SetPlayerWeapon(playerid,wep,9999);
}
return 1;
}


Check it out and tell me how you did.
Greetings ;)
#66
The scripts FBS 2.0 are mIRC or Squirrel?
#67
In fullnick, need insert full name previously saved in the list of bans,if you do not write the full name of player or if it's not on the list, this will send a message of non-existence of the player, for example, I "ban" to David, when using "unban", write the full name of that.

Quote/c unban david blablablabla

What is your server?
#68
Online :o, well,when "unban" a player must be a reason of "unban"
#69
mIRC/pawn Scripting / Re: !fight problem
December 14, 2010, 08:47:16 AM
Well, that and would like a "! lms"  :-\
#70
First download this link:http://www.mediafire.com/?jnr27599hribuio, brings in a folder that says "Banneds" you put that folder in the folder "scriptfiles" (if you do not, create it). and paste these 4 functions in your "GameMode":

public InfoPlayerBanned(playerid)
{
new IP[256],MSN[256],BAN;
GetPlayerIp(playerid,IP,256);
BAN = dini_Int("/Banneds/Banlist.ini",IP);//find IP in the list.
if(BAN == 1){// if the IP in the list is 1, kick player (1 = true, 0 = false)
            format(MSN,256,">> Server Auto-Kick: %s - Reason: [IP Banned]",gPlayers[playerid]);
            SendClientMessageToAll(BLUE,MSN);
            Kick(playerid);//kick player :P
                   }
}

public PlayerBanIP(playerid,admin,reason[])
{
       new IP[256],MSN[256],inf[256];
       GetPlayerIp(playerid,IP,256);
       format(inf,256,"1 %s %s %s",gPlayers[playerid],gPlayers[admin],reason);//info to archive player banned
       dini_Set("/Banneds/Banlist.ini",IP,inf);//send to ban list
       dini_Set("/Banneds/PlayerBanlist.ini",gPlayers[playerid],IP);//send to player and IP
       format(MSN,256,">> Admin %s Banned: %s, ID: %d, Reason:%s",gPlayers[admin],gPlayers[playerid],playerid,reason);
       SendClientMessageToAll(BLUE,MSN);
       Kick(playerid);//kick player xP
}

public PlayerUnBanIP(player[],admin,reason[])
{
new MSN[256],IP[256],param[2][128];
IP = dini_Get("/Banneds/PlayerBanlist.ini",player);
       split(dini_Get("/Banneds/Banlist.ini",IP), param, ' ');
       format(MSN,256,">> Admin %s Un-Banned: %s, Reason:%s",gPlayers[admin],param[1],reason);
       SendClientMessageToAll(BLUE,MSN);
       dini_Unset("/Banneds/Banlist.ini",IP);//remove IP banned the list
       dini_Unset("/Banneds/PlayerBanlist.ini",player);//remove the name list
}

public IsPlayerBanned(player[])
{
new ispb[256];
ispb = dini_Get("/Banneds/PlayerBanlist.ini",player);//find IP to check list banneds
return (strcmp(ispb, "0", true) == 0) ? false : true;//checks the existence of the player or not
}


Now, in function "public OnPlayerConnect (playerid)," hit this InfoPlayerBanned (playerid), which would be more or less if:

public OnPlayerConnect(playerid)
{
InfoPlayerBanned(playerid);
return 1;
}


Now paste these 2 commands in function "public OnPlayerCommandText (playerid, cmdtext [])":

   else if (strcmp(cmd, "ban", true) == 0) {
new plr,reason[256];
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp), reason = strtok(cmdtext, idx);
if (!strlen(reason)) SendClientMessage(playerid,GREEN,"** pm >> [Syntax] - The correct use: /c ban <player> <reason>");
  else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,GREEN,"** pm >> [Error] - Unknown player.");
else {
                PlayerBanIP(plr,playerid,cmdtext[strval(reason)+strlen(tmp)+4]);
}
return 1;
    }

   else if (strcmp(cmd, "unban", true) == 0) {
new reason[256];
tmp = strtok(cmdtext, idx), reason = strtok(cmdtext, idx);
if (!strlen(reason)) SendClientMessage(playerid,GREEN,"** pm >> [Syntax] - The correct use: /c unban <player> <reason>");
  else if (!IsPlayerBanned(tmp)) SendClientMessage(playerid,GREEN,"** pm >> [Error] - This player is't banned, insert full name.");
else {
               PlayerUnBanIP(tmp,playerid,cmdtext[strval(reason)+strlen(tmp)+6]);
}
return 1;
    }


Credits: YO (Madara)  :o

You must remember, that if these two commands will stick where you have more commands and Hass and started one with "if ", the two commands would begin with "else if ".
Now only question that you put a line reference, that only admins can use these 2 commands.

Hope that helps, if you have any doubts, let me know if you are using GUPS scripts, and you can not get on your GM do, let me know to do so in ways that command is in GUPS, but if you do it yourself pudistes , Good luck.

Greetings ;)
#71
mIRC/pawn Scripting / Re: !fight problem
December 13, 2010, 09:09:46 AM
That does not work, first in the "SetPlayerPos" not define the argument 6, which is where you should go inside the saved location (in this case, if the place is outside, inside would be 0) , and you should remove:

     tmp = strtok (cmdtext, idx);
     if (! strlen (tmp)) {
     }

Look, here I leave the command, if you have not yet fixed.

   else if (strcmp(cmd, "!fight", true) == 0){
         new plname[24],enstr[256];
         SetPlayerPos(playerid, -1363.4431,1332.3104,83.8882,250.4980,0);
         SendClientMessage(playerid, COLOR_ORANGE, "** pm >> Welcome to Fight Zone!");
         ResetPlayerWeapons(playerid);
         GivePlayerWeapon(playerid, 21, 100);
         GetPlayerName(playerid,plname,24);
         format(enstr,sizeof(enstr),">> %s has join fight zone.",plname);
         SendClientMessageToAll(COLOR_ORANGE,enstr);
      return 1;
  }


Greetings ;D
#72
in Pawn, has bugs, but you can make one, it's easy to do.   ::)
#73
mIRC/pawn Scripting / Re: Hunter model
November 07, 2010, 02:20:12 AM
Hi robd, this are the IDs:

Rhino: 162
Hunter: 155

This is a useful program to see the model of the vehicle and its id, you can use both in GTA 3, GTA VC and GTA SA, just unzip the file, all you extract the folder where you installed GTA VC.

GTA Garage Mod Marager
http://www.gtainside.com/en/download.php?do=download&id=14089
#74
if you wannna, you can also use this:

Quote
    if (strcmp(cmdtext, "!superheal", true)==0) {
          new msn[256],Float:Health, Float:Armour, money;
            GetPlayerHealth(playerid,Health), GetPlayerArmour(playerid, Armour), money = GetPlayerHandCash(gPlayers[playerid]);
          if(GetPlayerState(playerid) == 2) {
                new Float:armveh; GetVehicleHealth(GetPlayerVehicleID(playerid),armveh);
                if (money < 500) {
               format(msn,256,"** [Error] >> You have $ %d in Cash, Need $ %d more for Superheal.",money, 500 - money);
                SendClientMessage(playerid,0x33AA33AA,msn);
            }
            else if( armveh == 1000 ) SendClientMessage(playerid,0x33AA33AA,"* [Error] >> You Vehicle have 100% HP , don't need it.");
                else {
                     SetPlayerHealth(playerid,100.0);
                   SetPlayerArmour(playerid,100.0);
                SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
                SetVehicleTyre(GetPlayerVehicleID(playerid),1);
                   SendClientMessage(playerid,0x33AA33AA,"** pm >> You have been Supere Healed in you Vehicle.");
                   DecPlayerHandCash(playerid,500);
            }
           }
           else {
           if(GetPlayerState(playerid) == 1) {
                if (money < 500) {
                format(msn,256,"** [Error] >> You have $ %d in Cash, Need $ %d more for Superheal.",money, 500 - money);
                   SendClientMessage(playerid,0x33AA33AA,msn);
            }
             else if( ( Health == 100 ) && ( Armour == 100 ) ) SendClientMessage(playerid,0x33AA33AA,"* [Error] >> You have 100% HP and 100% ARM, don't need it.");
            else {
                SetPlayerHealth(playerid,100.0);
                    SetPlayerArmour(playerid,100.0);
                    SendClientMessage(playerid,0x33AA33AA,"** pm >> You have been Supere Healed.");
                    DecPlayerHandCash(playerid,500);
                    }
          }
      }
    return 1;
    }
#75
wants only to send private messages to another player, or to go keeping ID's messages