Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => ShowRoom (pawn) => Topic started by: Ettans on February 20, 2010, 01:31:39 PM

Title: [CP] Builder commands.
Post by: Ettans on February 20, 2010, 01:31:39 PM
It's just a code-piece of OnPlayerText callback. I only made it because I needed an easy way to change some settings and save raw coordinates, without using the build mode.
Simply replace your OnPlayerText callback with this one, or copy the commands to your own OnPlayerText callback.

Commands


Note: Before using !savepos, make sure you have scriptfiles folder in your server folder, otherwise it'll crash the server.

Example of saved coordinates in savedpos.txt:


346.19,-262.54,35.88,3.11 // x,y,z,angle
444.85,-437.57,10.14,0.04 // x,y,z,angle


Link to code: http://pastebin.com/fbd0d2d4

Currently I'm working on an array with vehicle names and models.
Title: Re: Builder commands.
Post by: chn batista on February 20, 2010, 03:07:45 PM
nice:)
Title: Re: Builder commands.
Post by: [AoD]NC on February 20, 2010, 07:18:02 PM
Quote from: Ettans on February 20, 2010, 01:31:39 PM
It's just a code-piece of OnPlayerText callback. I only made it because I needed an easy way to change some settings and save raw coordinates, without using the build mode.
Indeed.

Great work :) but i wont use it now, but who knows maybe in the future ;).
Title: Re: [CP] Builder commands.
Post by: BCKLUP on March 15, 2010, 10:45:29 AM
Does it save comments like in /s
Example: !savepos SomeShittyPool
or something like that :P

This can be Heavily modified to be a Saveloc and Gotoloc script, right??
Title: Re: [CP] Builder commands.
Post by: Ettans on March 15, 2010, 11:02:29 AM
No, it doesn't accept additional comments, but you can easily change that and yes, you can modify it to make saveloc and gotoloc commands.
Title: Re: [CP] Builder commands.
Post by: BCKLUP on March 15, 2010, 11:05:29 AM
Quote from: Ettans on March 15, 2010, 11:02:29 AM
No, it doesn't accept additional comments, but you can easily change that and yes, you can modify it to make saveloc and gotoloc commands.
Always wanted a gotoloc and saveloc but couldn't make one because of my lack of intelligence with File Management based functions

But with this example i might learn a new "thing" :P
Thank you very much  :)
Title: Re: [CP] Builder commands.
Post by: Devian on April 25, 2010, 06:05:58 PM
 really i try put this cmds on my Gamemode but doesn't work. :/

i get errors:

C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(92) : error 021: symbol already defined: "cmd"
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(92) : error 033: array must be indexed (variable "-unknown-")
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(94) : error 035: argument type mismatch (argument 1)
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(102) : error 035: argument type mismatch (argument 1)
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(118) : error 035: argument type mismatch (argument 1)
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(136) : error 035: argument type mismatch (argument 1)
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(153) : error 035: argument type mismatch (argument 1)
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(172) : error 035: argument type mismatch (argument 1)
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(182) : error 017: undefined symbol "pveh"
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(182) : warning 215: expression has no effect
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(182) : error 001: expected token: ";", but found "]"
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(182) : error 029: invalid expression, assumed zero
C:\Arquivos de programas\Rockstar Games\Grand Theft Auto Vice City\Servers\Pawn-svr\gamemodes\test.pwn(182) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase


12 Errors.


can someone help?!?
Title: Re: [CP] Builder commands.
Post by: Devian on May 01, 2010, 04:59:39 PM
^
Title: Re: [CP] Builder commands.
Post by: Sephiroth on May 04, 2010, 11:57:14 AM
nice but here's something offtopic, I saw [CP] and thought kenny01 brought cherry poppers back :(