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

#46
Yes, put it anywhere in OnPlayerCommandText.
#47
/c help
#48
You could have done that yourself, there's even an example command in the example script (mode.pwn).

@to OnPlayerCommandText

if(strcmp(cmdtext,"help",true) == 0)
{
    SendClientMessage(playerid,0xFFFFFFFF,"Your message...");
    return true;
}
#49
Tutorials / Re: Setting up a R2 Server made with Pawn
February 26, 2010, 09:53:00 AM
By the way, I noticed you have #define COLOR_RED 0xFF0000AA; in the tutorial, you don't need to end defines with a semi-colon. Other than that, nice job, must have taken a lot of time.  ;)
#50
mIRC/pawn Scripting / Re: irc question
February 26, 2010, 08:36:46 AM
True that.  :D
#51
mIRC/pawn Scripting / Re: irc question
February 25, 2010, 06:43:53 PM
Quote from: Forze on February 25, 2010, 05:10:33 PM
2. if you can't forward ports, I don't think you can create your own network.

Creating an IRC server/network has nothing to do with ports though, you'll need a dedicated server for it, as hosting it on local machine is plain pointless. Not to mention strong unix and irc protocol knowledge.
#52
General Discussion / Re: My descussion
February 25, 2010, 03:37:55 PM
Quote from: Kingston on February 25, 2010, 12:42:29 PM
i says,: let's make a VC:MP Like SA:MP
1- so easy to edit a commands
2- so easy to make a server In channel Internet

;D

1. It's already as easy as in SA:MP, as they both use PAWN and all/most of the callbacks also have the same name, not to mention functions.
2. Requires plugin support, to create a fully functional IRC echo plugin.
#53
mIRC/pawn Scripting / Re: irc question
February 25, 2010, 08:45:32 AM
Quote from: [AoD]NC on February 24, 2010, 04:24:24 PM
* [AoD]NC bids 100$ that he wont understand this website portforward.com ^

Open pawn script in PAWNO
public OnGameModeInit()
{
Jumpswitch( true );
}

a_vcmp.ini [?] says that its Jumpswith with small "s"... Or maybe its JumpSwitch?

You need to use Jumpswitch, with a lowercase s.
#54
mIRC/pawn Scripting / Re: PAWN: Camera problems
February 24, 2010, 06:14:20 PM
Server problem/bug. Nothing scripting related.
#55
mIRC/pawn Scripting / Re: irc question
February 24, 2010, 01:55:06 PM
1. JumpSwitch(true); to OnGameModeInit callback.
2. http://portforward.com/
#56
mIRC/pawn Scripting / Re: Help please?
February 23, 2010, 08:23:20 PM
By saving, do you mean compiling, or just saving? Press F5 to compile and then try again.
#57
mIRC/pawn Scripting / Re: Help please.
February 23, 2010, 08:27:09 AM
Are you sure there isn't a second OnPlayerConnect callback in your gamemode? Also, don't forget to re-compile. ;)
#58
mIRC/pawn Scripting / Re: I need 2 scripts :)
February 22, 2010, 10:25:20 AM
Not sure what's wrong with it, as the line is ok.
#59
mIRC/pawn Scripting / Re: I need 2 scripts :)
February 22, 2010, 10:21:04 AM
Ok, try this:


if(strcmp(cmdtext,"!pcj",true) == 0)
{
    new Float:angle;

    GetPlayerPos(playerid,x,y,z);
    GetPlayerFacingAngle(playerid,angle);

    CreateVehicle(191,x,y,z,angle,-1,-1);
    SendClientMessage(playerid,0xFFFFFFFF,"Spawned a PCJ-600!");
    return 0;
}
#60
mIRC/pawn Scripting / Re: I need 2 scripts :)
February 22, 2010, 10:16:04 AM
Do you have x,y and z defined globally? Just rename the text to cmdtext and you can remove the string[64]. Also, what line exactly gives the "warning 202: number of arguments does not match definition" warning?