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 - kitt85711

Pages: 1 ... 3 4 [5]
61
mIRC/pawn Scripting / Tax Command
« on: July 23, 2011, 01:05:10 pm »
I wanted to make a tax command but theirs some problems with it, I dont know what to add in the script or delete. I want to make it so when I or any other admin taxes someone it takes peoples money and sends it to us. This is what I done so far.

Quote
}
   else if (strcmp(cmd, "tax", true) == 0) {
      new szMsg[256], plr;
      tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
      if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
      else if(!IsPlayerCommandLevel(playerid,"jail")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
      else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c tax [Nick/ID]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
        else {
         format(szMsg,sizeof(szMsg),"%s has taxed %s for $%d dollars",gPlayers[playerid],gPlayers[plr], GetPlayerHandCash(gPlayers[playerid]));
         SendClientMessageToAll(COLOR_YELLOW,szMsg);
            DecPlayerHandCash(playerid,GetPlayerHandCash(gPlayers[playerid]));

      }
      return 1;

And another tax was /c btax so it taxes someone from their bank.

Quote
}
   else if (strcmp(cmd, "btax", true) == 0) {
      new szMsg[256], plr;
      tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
      if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
      else if(!IsPlayerCommandLevel(playerid,"jail")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
      else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c btax [Nick/ID]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
        else {
         format(szMsg,sizeof(szMsg),"%s has bank taxed %s for $%d dollars",gPlayers[playerid],gPlayers[plr], GetPlayerHandCash(gPlayers[playerid]));
         SendClientMessageToAll(COLOR_YELLOW,szMsg);
            DecPlayerBankCash(playerid,GetPlayerBankCash(gPlayers[playerid]));
        }
      return 1;

I need help because when I tax myself it takes all my money. I want it so I can /c tax (Id) (amount)
The bank tax kind of works but it still takes all my money in my bank. Can someone help please?  :D

P.S. I know u have to add something where it says tmp=(what ever) but I dont know what to add because I know tmp is the one where u can make commands like say /c drown the command has to be /c drown (id) (reason) if the tmp is changed it can just make it /c drown (id) without the reason.

62
mIRC/pawn Scripting / Re: Cars
« on: July 20, 2011, 05:17:05 am »
dude i just put in random numbers and restart my server and i see cop cars instead of the cars I want

63
mIRC/pawn Scripting / Cars
« on: July 18, 2011, 10:05:32 am »
I'm using GUPS and adding cars using /c addveh so I dont really know what to put in the color part with the /c addceh (type) (color1) (color2) (respawntime) but even if I put random numbers it keeps giving me a cop car and I dont want that, what do I do? I'm trying to test out the voodoo and see if I can fix the crashing

64
mIRC/pawn Scripting / Jail System
« on: June 15, 2011, 12:33:54 am »
I found a good place to put people when there jailed, but how do I even make a jail command, and where do I put the coordinates?

65
mIRC/pawn Scripting / Re: Lock Server
« on: June 05, 2011, 05:45:32 am »
Thanks but still dosent help on how I lock it
Lol Secret message

66
mIRC/pawn Scripting / Re: Scripts
« on: June 05, 2011, 05:43:00 am »
Thanks, I'm using pawno and its very easy.

67
mIRC/pawn Scripting / Re: Places
« on: June 02, 2011, 02:21:53 pm »
I kind of get it then I dont. Can I just get a download or something because I dont wanna be copying and pasting all day :/

68
mIRC/pawn Scripting / Places
« on: June 02, 2011, 07:58:38 am »
I'm using GUPS 16 and can someone help me on how do i add houses you can buy or at least give me a download I can just put in the scritpfiles- Propertys?

69
mIRC/pawn Scripting / Lock Server
« on: May 30, 2011, 08:44:05 pm »
Can someone help me one how do I lock my server, so only people who know the pass can enter?

70
Tutorials / Tutorial on How to Make You're Own Server
« on: May 30, 2011, 06:10:07 pm »
Well this is how I did it. First I went to VC:MP site. http://www.vicecitymultiplayer.com/
Then I downloaded the windows server, and let it load. Make a folder separate  to put that download in. Open it up and find that folder to unzip it in. You will get 5 items. vcmp-srv.exe, server.cfg, server0.3zr2(pawn)(updated2).exe, announce.exe, and a folder named gamemodes. You will get 6 items if you click on vcmp-srv.exe. It's a txt named server_log.txt. Open up the server.cfg. Fill in the answers. Example:

echo Executing Server Config...
friendlyfire 1
lanmode 0
maxplayers 50
port 5192
hostname VCMP
gamemode0 mode 1
rcon_password none

For the host name just put the name of your server. For the port just leave it or put in your port. It might automatically put it in for you. You can change the number of the max players. For me its 20. Put your rcon pass if you want to be a UC admin. 1 means on 0 means off. For me I found Monkey Scripts. I downloaded it here. http://www.mediafire.com/?zmnidi0gzvr I tried to find GUPS but couldn't. You cant run your server with out one of these, I tried it and I had no skins to pick and I crashed. For Monkey Scripts you will get 3 items. A readme.txt, scp.pwn, and scp.amx. Follow the readme and replace the items that are already in the gamemodes (Just move them somewere or you can delete them) (I deleted the readme already in gamemodes because I didnt need it)

Now you have 2 or 3 items in gamemodes, depends if you deleted that readme. If you have it open already or open it, open server.cfg. Replace the "gamemode0 mode 1" to "gamemode0 scp 1". Now open the vcmp-svr.exe, keep it open and click on announce.exe. Nothing will pop up but go to the VC:MP servers and refresh the servers, look for your server and look you have a server, uploaded with Monkey Scripts.  ;)

71
mIRC/pawn Scripting / Scripts
« on: May 30, 2011, 05:45:26 pm »
I already got a server now, no thanks to you guys -_-. I downloaded Monkey Scripts and I started editing the scp.amx script like I'm changing how the welcome will be and how much money you get if you kill a person, and did some changes in the colors but when I go on my server none of its changed. What do I do? I asked on of my friends and see if he knew how to make it work, but he didn't. I need a pro scripter's advice. I edited my script by opening it with a word pad and doing the changes then saving but its not working, can someone help?

72
mIRC/pawn Scripting / Server
« on: May 26, 2011, 11:20:54 am »
Can someone help me, I dont even get the scripting but how do u even get a server?

Pages: 1 ... 3 4 [5]