• 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 - Boss

#391
mIRC/pawn Scripting / Re: Pawn data storage?
January 17, 2010, 03:22:39 AM
Since afaik plugins are not yet supported, there is no way of using all those fancy MySQL plugins made for SA-MP, so you're left with storing data in plan text files. For that purpose, you should use the functions from file.inc. Open data stream with fopen, write the stuff you need with fwrite and close the stream with fclose. You can then access the stored data by using fread (don't forget to open and close the stream too).
#392
Ensure you have the "gamemodes" folder in the proper place with the default mode in it.
#393
mIRC/pawn Scripting / Re: List of Bugs with Pawno
January 16, 2010, 08:02:31 PM
I reported all of these.
1) Yes, they actually don't work.
2) You need to jump after spawning to be able to shoot/drive.
3) Yep, the mode will always be shown as "DM" in the browser.
4,5) These two are not implemented, even though they are added in .inc.
#394
Add IsPlayerAdmin check like

if(IsPlayerAdmin(playerid)){
    // Commands here.
}
#395
Quote from: Trip on January 16, 2010, 05:57:55 PM
some of the other things needed besides a locked interior and 2 classes...would be a third class for referees (people just watchingin/filming a match--or afk)   a gunmenu upon spawning when starting in a round...and a /sync command as there are still desync issues ofc (gets the players current position/health/armour/guns and respawns them at that current position--kind of a cunt command to configuire)  and the the ofc /random command that selects a random base to start---then..more complex not MUST have commands are /remove /bring...if a player is bugged...removed them from the round and bring them back in...rather then restarting everyone.  and maybe a /spec id  for when u die u can spec ur team who is still fighting.   That's a basic a/d script for ya ^)  putting the cars in for attacker spawns..tideous but i could do myself...and maken the bases...zomg..so tidueous...copy n paste hell..but i could also do that myself..
You can add the referi class and x2 classes for each weapon set.
Spectate command is impossible via the current means provided by pawn.
A command for "restarting" a player is rather obvious too - just store his hp and coords, kill him and respawn him at the stored coords with stored hp. Storing player's ammo is impossible atm.

This would not be a basic a/d script anyway. More like intermediate.
#396
1. Yes. Store kills and deaths in two arrays and output them upon entering the command.
2. Yes. Just delete it.
3. There is no such function yet.
#397
Please, use search before posting so that developers can develop the MP rather than respond/lock/delete your threads.
#398
mIRC/pawn Scripting / Re: A Problem
January 16, 2010, 05:02:27 PM
Switch to pawn please. Its functionality is superior to the one of ini/mrc scripts.
</offtop>
#399
mIRC/pawn Scripting / Re: Interiors
January 16, 2010, 04:45:37 PM
#400
Seriously, what's your problem? Make two spawns with different skins somewhere in a locked interior, add admin command for teleporting players to specific coordinates judjing by their class and off you go. That's 10 minutes of work (not counting collecting coordinates).
#402
mIRC/pawn Scripting / Re: Question
January 15, 2010, 10:10:28 AM
Quote from: Tonys on January 15, 2010, 07:23:26 AM
Ok so uh how do you create commands in pawn using /c !commandhere and not just !commandhere.
Pretty much like a usual command:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    if (strcmp(cmd, "!commandhere", true) == 0)
    {
        // Do stuff.
        return 1;
    }
    return 0;
}


Why would you want to use both "/c " and "!" anyway?
#403
Support / Re: Not so F AQ pt.2
January 15, 2010, 01:40:27 AM
Quote from: Falcon on January 15, 2010, 01:16:56 AM
Simple reason pawn and std server both use same client atm .. so if we remove death and join messages a server w/o scripts would have none. I might add in a way to define no messages in pawn script or something along those lines.
Quote from: Falcon on January 15, 2010, 01:16:56 AM
Same reason as above std server to pawn server has no rpc set in client.
Why would someone want to use a std version when there's a pawn version avaliable? If the problem is with moving .ini scripts into .pwn, I can make a converter in less than a hour.

Quote from: Falcon on January 15, 2010, 01:16:56 AM
There is already GameTextPlayer() not sure what else you would like ..
Whoopsie! Didn't notice it, my bad. Well, it would be nice to make color and fadeout time customisable in the future.

Quote from: Falcon on January 15, 2010, 01:16:56 AM
we could make it toggle for some weapons i spose if there is a great need for it.
Yeah, that would be really great.
#404
Support / Not so F AQ pt.2
January 14, 2010, 07:11:09 PM
Me again. The previous thread was locked (for no apparent reason), so I had to start a new one.

I'm almost done making my script, which 100% dublicates MTA 0.5 mode. Yet I'm confused about few other things, which do not let me finish:
1. Why are there so many "system messages"? Kills and joins/parts take two lines of code to be put into a mode, yet you can't get rid of them (or change them) if you need to.
2. If there's no easy way of making chat scrolling, at least make it wider so that most of the messages don't take two lines. Some extra chat lines would be nice too.
3. How come SetCameraPos can't be used for players separately (addressing them by playerid)? MTA had the camera moving from spawn to spawn but there's no way to do that in VC-MP.
4. Many functions simply don't work (SendDeathMessage, SetPlayerDrunk, SetTimer, SetPlayerMarker, SetPlayerColor etc., with the last two even causing crashes). Yes, I know that they take much time to make, but at least remove them from the .inc, since such "placeholders" are not good at all.
Speaking of inoperative functions, I need at least SetTimer for making sailor regeneration an SetPlayerColor for custom class colors. How come nobody noticed that such generic functions do not work?
5. Having a simple function for outputting a text on the screen (like you do it at the spawn screen) would be nice too.
6. Remove or toggle headshots. They look reasonable when using m4/m60, but blowing the head off with just a colt/tec9...
7. Having an "ammount" parameter in AddStaticPickup would be nice. Or, at least, lower the ammounts to the ones from MTA (50 molotovs from a single pickup? jeez).
8. And I just recently noticed that melee weapons' hits are almost desynced. I hit a standing still guy with a bat 10 times and his hp reduced just once.

I'm still offering my help with readmes/testing/site/whatnot if it helps to fix the things mentioned above sooner.
#405
Support / Re: Not so F AQ
January 14, 2010, 01:39:47 AM
Quote from: maxorator on January 14, 2010, 12:39:15 AM
Yet again you don't know what you're talking about. Debugging is an interactive process.
I do, actually. I'm a programmer and a project lead of two relatively small projects, so I had my share of test organizing. Indeed, debug is better perfomed when being able to deliever the updated build every few minutes (which I see no problem with), but, with a good enough logging and lots of luck you can make it with just 1 build. ;)

Quote from: maxorator on January 14, 2010, 12:39:15 AM
The not being able to use mouse controls unless you switch to menu once or a few times is a bug in Vice City. I see it happen in the single player all the time.
Yeah, I encountered that back in MTA either. It can also lead to a freeze/crash after few switches to the esc menu. Not sure if it's fixable via the means of vc-mp though.

Quote from: maxorator on January 14, 2010, 12:39:15 AM
One idea would be to have a different symbol for server commands though.
Yep, something like "/rcon command" would be great.

Quote from: maxorator on January 14, 2010, 12:39:15 AM
You should really be more careful with such statements. ;)
Ah, yes, you need a sacred knowledge of HTML for successfully adding site links!  :)

Quote from: maxorator on January 14, 2010, 12:39:15 AM
I don't think there's anything you can help with at the moment. Although it is good to know some people are actually trying to be helpful. :)
YW. ;)