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.


Topics - kitt85711

Pages: [1] 2
1
General Discussion / Its Been a Long Time
« on: September 28, 2014, 04:32:49 am »
Hey guys, its been a VERY long time since I've been on VCMP. I just wanted to check in say hi to all who knows me. I really wish I could have been playing since all this time, but I cant afford anything right now. I don't have internet anymore not even dial up, and my computer sucks shit because it cant even play the simplest games. I would need to boost the ram and get a better graphics card otherwise just buy a new computer. But its been fun, and hope to game with you in the future. - Kittrell P.S. I am really hitting it off with my music, check out www.reverbnation.com/age15 I have too many songs to count but let me know what you guy's think. :) - Thank you!  8)

2
mIRC/pawn Scripting / A lil engine problem
« on: August 06, 2012, 08:27:16 pm »
I need a mechanic to fix my engine to get it running  ;D I made a system that turns off the engine but how do I get it to turn on. I have my timers and everything for /c start just it wont start :P. Wish you could add a Engine(vehicleid, bool); would be a lot simpler :P

3
mIRC/pawn Scripting / Counting
« on: July 23, 2012, 06:46:34 pm »
I want to try to make a command that says /c wanted and it should tell how many people that are wanted in the server and I was looking at !admins and !warns but I feel that is a little too complex for me. I don't how how to work in the parts with the ++ like at the very end of the script.

I have my IsWanted[playerid] but how would i make it count everyone who is wanted in the server

4
mIRC/pawn Scripting / Warning That I dont Get
« on: July 23, 2012, 11:25:34 am »
I have this on my suspect command

[pawn]else if (IsCop [plr] == 1) SendClientMessage(playerid, COLOR_YELLOW,"*****[Error] %s Is A Cop!*****", gPlayers[playerid]);[/pawn]

And it gives me this warning and when I try it in the server it doesn't work. I spawn as a cop and it still suspects me. And I tried to make an else if that made it so you cant suspect someone that is already wanted but it uses the same thing the IsSuspected[plr]. Can someone help? P.S. Please can someone get back to me on that jail command

5
mIRC/pawn Scripting / Jail System
« on: July 21, 2012, 05:32:28 pm »
I'm tired because I stayed up all night working on my script. But when I'm tired its like I don't give a damn and I just do it. I need a little help with this. I'm making a jail command for my cops N robbers server. And this idea is based on how Argonath's server jail system is. I'm kind of stuck and I get 26 errors and I want to find the source of the problem. So lets start.

I have

[pawn]new AutoJail[MAX_PLAYERS];
new IsJailed[MAX_PLAYERS];[/pawn]

At the top.

Now I have my command that starts it all.

[pawn]}
   else if ( strcmp( cmd, "jail", true ) == 0 )
   {
      new szMsg[ 128 ], plr;
      tmp = strtok( cmdtext, idx ), plr = FindPlayerIDFromString( tmp );
      if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_YELLOW, "*****You need to login first*****");
      else if(IsCop[playerid] == 0) SendClientMessage(playerid, COLOR_YELLOW,"*****Only Officers Of The Law Can Use This*****");
      else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c jail [Nick/ID]");
        else if(strcmp(GetPlayerLocation(playerid), "Vice-City-Prison-Washington-Beach-Vice-City-Beach", false) == 0) SendClientMessage(playerid, COLOR_YELLOW, "*****[Error]You have to be at the jail cells to jail someone!*****");
        else if(strcmp(GetPlayerLocation(plr), "Vice-City-Prison-Washington-Beach-Vice-City-Beach", false) == 0) SendClientMessage(playerid, COLOR_YELLOW, "*****[Error]%s has to be at the jail cells to be jailed!*****", gPlayers[playerid]);
      else if (IsCop[plr] == 1) SendClientMessage(playerid,COLOR_YELLOW,"*****[Error] %s Is A Cop!*****", gPlayers[playerid]);
       else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_YELLOW,"*****[Error] Unknown player*****");
      else if (IsCriminal[plr] == 0) SendClientMessage(playerid,COLOR_YELLOW,"*****[Error] >> %s << has not commited a crime!*****", gPlayers[playerid]);
       {
          format( szMsg, sizeof( szMsg ), "*****Officer >> %s << has jailed >> %s <<*****", gPlayers[ playerid ], gPlayers[ plr ]);
         SendClientMessageToAll( COLOR_YELLOW, szMsg );
         SetPlayerPos(plr,387.873, -509.743, 8.98706,0,0);
         (IsJailed [plr] = 1);
         TogglePlayerControllable(plr,0);
            RemovePlayerMarker(plr);
      }
      return 1;[/pawn]

I tried this one before but Stormeus was telling me about how you can't put timers on other people. So I thought it's just like a trap. Why not push them in and it works all by itself. So since they are jailed I'm telling the server they are and it should start the auto jail

My publics

[pawn]public OnPlayerJail(playerid)
{
if (IsJailed[playerid] == 1){
SetTimer("Jailed", 100000, 0);
GameTextForPlayer(playerid, "~w~Jailed", 60000,0,0);
AutoJail[playerid] = 1;
}
return 1;

}

public OnPlayerAutoJail(playerid)
{
AutoJail[playerid] = 1;
if (strcmp(GetPlayerLocation(playerid), "Vice-City-Prison-Washington-Beach-Vice-City-Beach", false) == 0){
SetTimer("AutoJail", 3000, 1);
}
if (AutoJail[playerid] == 0){
KillTimer("AutoJail");
return 1;

}
[/pawn]

And then I have my timers

[pawn]public Jailed( playerid )
{
   AutoJail[playerid] = 0;
   SendClientMessage(playerid, COLOR_YELLOW, "*****You have been released out of jail*****");
}

public AutoJail( playerid )
{
SetPlayerPos(playerid, 387.873, -509.743, 8.98706,0,0);
}[/pawn]

Is this not genius or what? :P heheh. Anyways I get these errors and I know on my public the if fails. I need something to put in that if.
Quote
if (strcmp(GetPlayerLocation(playerid), "Vice-City-Prison-Washington-Beach-Vice-City-Beach", false) == 0){

6
mIRC/pawn Scripting / Some Help That Got Crashed In The Database
« on: July 17, 2012, 05:31:35 am »
I need some help. I have two questions (Got deleted during the database crash) How would I make it so when someone spawns as a certain skin it gives it special abbilities. For instance, if I were to be a cop how would I make it on the spawn to tell the server that the player is a cop and is alloud to use cop functions.

And then another thing is, how do you use an include? I downloaded this include about /c ban and /c subnet ban and I installed it and nothing happens. I put the include in the folder, I added the Bans/Subnets in my scriptfiles like it told me to, and I added it at the top of my GM. But nothing happens. How would I get the include to work? It's a good thing I save my downloads. This was on the forum but it got deleted along with the rest of the script release but the link to it is here: http://www.mediafire.com/?y1ewh4bgl3bwurv How would I do this?

7
Vice City / 0.4
« on: June 14, 2012, 02:46:13 am »
Is it too much info if I could ask the features of 0.4 when it comes out? I want to know just a little bit about what bugs will be fixed and what will be added. Thanks - Kittrell

8
mIRC/pawn Scripting / Help Giving Pickups Function
« on: April 05, 2012, 08:44:11 pm »
I figured out how to change pickup looks through the scripting wiki but I need help giving them function. What would I put in the OnPickedUp? I'm trying to make two different pickups, 1 that teleports and 1 that kills when grabbing it. I'm trying to make a block that would kill you. Just a small portion I don't need a world bounds. I need help

9
mIRC/pawn Scripting / Pickups
« on: March 11, 2012, 08:22:12 am »
How do I add pickups in the script that can teleport you to a certain coordinate? And How are pickups made? For instance I see some pickups that look like certain things how do you make it do that?

1st part I need help

2nd part I'm just curious

10
mIRC/pawn Scripting / !report
« on: March 11, 2012, 07:45:22 am »
Could I get some help on how I could fix the report? I just need to fix it so I can get the warning off of it.

}
      else if (strcmp(cmd, "report", true) == 0) {
          new tmp2[256], plr;
      tmp = strtok(cmdtext, idx), tmp2 = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
      if (!strlen(tmp2)) SendClientMessage(playerid,COLOR_GREEN,"[Syntax]/c report <Nick> <Reason>.");
      else {
          if (plr != INACTIVE_PLAYER_ID) {
             new string[256];
            format(szMsg,sizeof(szMsg),"You Reported [%s] Reason [%s]",gPlayers[plr],tmp2);
            SendClientMessage(playerid,COLOR_GREEN, szMsg);
            format(szMsg,sizeof(szMsg),"[%s] is Reporting [%s] for [%s]",gPlayers[playerid],gPlayers[plr],tmp2);
This is the warning ---->            for(new i = 0; i < MAX_PLAYERS; i++) if(!IsPlayerConnected(i) && ( !IsAuthorized( playerid, cmd ) )(i)) SendClientMessage(i,BLUE, szMsg);
                SendClientMessage(playerid,COLOR_GREEN,"Please Wait While  Admins Take Action on Report");
            format(string,256,"ReportBy: %s ; Reason: %s",gPlayers[playerid],tmp2);
            dini_Set("/Reports/Reports.ini",gPlayers[plr],string);
         }
         else { SendClientMessage(playerid,COLOR_YELLOW,"Error: Unknown player"); }
      }
      return 1;


I want it so I can report with /c not ! or just report. It reports fine it says who reported, on who, and why, but can I get help fixing the reason?

When you make the reason it only does the first word. You have to write it in one word.

And I need help to make it tell admins. All it says in game is it will be reported to admins but it don't tell admins you would have to go into script files and see the report yourself.


So can someone help me with these things?

1. Fix report reason, so you can space

2. Help send the report to admins in game

3. Help turning report to /c report

The warning I get is (2376) : warning 202: number of arguments does not match definition

11
mIRC/pawn Scripting / Skins
« on: March 10, 2012, 07:07:51 am »
Can I get help on how I would fix my skin cmd? When your at a certain place and you are aloud that function for instance, I'm a cop I want to be like a UC cop, I have to go to the station to become that but I get a warning in my command. Can someone tell me how to fix this? I already have "cop," at the enum pInfo so I got that defined.

}
   else if (strcmp(cmd, "!cop", true) == 0) {
      if (PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_GREEN, "Please login first");
      else {
         new szMsg[256];
         SetPlayerSkin(playerid, 1);
         SetPlayerWeapon(playerid, 17, 500);
         SetPlayerWeapon(playerid, 19, 500);
         PlayerInfo[playerid][cop] = 1;
         format(szMsg, sizeof(szMsg), "Welcome to the force, officer %s", gPlayers[playerid]);
         SendClientMessage(playerid, COLOR_GREEN, szMsg);
         SendClientMessage(playerid, COLOR_GREEN, "!cophelp");
         SetSpikes(playerid,1);
      }
      return 1;

And the warning I get says: warning 219: local variable "szMsg" shadows a variable at a preceding level

How would I fix this so I can remove the 5 warnings I have?

12
mIRC/pawn Scripting / Distance
« on: September 03, 2011, 01:14:39 pm »
You know how if you say /c l or /c s or something like that there's like a distance to where you can only see them type that? How would I do that?

13
mIRC/pawn Scripting / RPG Commands
« on: September 03, 2011, 01:13:04 pm »
I am making a taze command but when I tried the timer it didnt work. For instance, I had }
   else if (strcmp(cmd, "taze", 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 (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c taze [Nick/ID]");
        else if (PlayerInfo[playerid][cop] != 1) SendClientMessage(playerid, COLOR_ORANGE, "Only officers can taze suspects.");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Officer %s tazed suspect %s for 5 seconds",gPlayers[playerid],gPlayers[plr]);
            SetTimer("taze",5000,1);
         SendClientMessageToAll(COLOR_YELLOW,szMsg);
            TogglePlayerControllable(plr,0);
      }
      return 1;

I followed yazeens post in fuzzys topic, so I had this,

stock taze()
{
TogglePlayerControllable(playerid,0);
}

but when I taze myself I keep being frozen and it wont unfreeze me after 5 seconds

14
mIRC/pawn Scripting / User Passwords
« on: July 28, 2011, 10:55:50 pm »
I have GUPS the final one and someone lost their password and wanted me to tell them what it was but then when I go to Scritfiles-Users-(Player) I get a bunch of crap that shows jiberish. Example: 4sedfBVew56Ewer and all that crap. He told me what he wanted his pass to be so I used /c changepassword and I restarted the server and that didn't work, I wasn't going to do /c resetpassword because after I do that, the person has to keep registering on my server.

How can I read that stuff in the User file and read the password?

15
mIRC/pawn Scripting / Pickups
« on: July 27, 2011, 04:00:08 pm »
How do I make special pickups? Like I need some Armour pickups somewhere and some Weapons pickups and I really want to know how to add a bushiness pickup where you can buy it and if u wait it pays you money. Can someone help?  :-\

Pages: [1] 2