Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => ShowRoom (pawn) => Topic started by: Tamas on January 17, 2010, 03:15:44 PM

Title: GUPS 1.16a
Post by: Tamas on January 17, 2010, 03:15:44 PM
General Use Pawn Script
Features:


The whole script is based on text files  :P
All admin commands located in the "Commands.ini" file.

If you find any bugs feel free to fix or report it to me ;D
Special thanks to the following peoples:


Current Version: 1.16a
Mirror#1: Download (http://thijn.vrocker-hosting.co.uk/vcmp/GUPS1.16a.rar)
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Hancock on January 17, 2010, 03:35:06 PM
Alright !
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Hancock on January 17, 2010, 03:50:40 PM
There is a little problem about commands ( its a little spam ) :

else if (strcmp(cmd, "!accountcmds", true) == 0) {
SendClientMessageToAll(ORANGE, "/c register, /c login, /c logout, /c newpassword");
return 1;


can u see ClientMessage to ALL !

even in !naturalcmds !vehiclecmds and !commands. i hope u fix this
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: NicoArin on January 17, 2010, 05:38:48 PM
nice
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: MrAcmering on January 17, 2010, 06:04:29 PM
Quote from: Hancock on January 17, 2010, 03:50:40 PM
There is a little problem about commands ( its a little spam ) :

else if (strcmp(cmd, "!accountcmds", true) == 0) {
SendClientMessageToAll(ORANGE, "/c register, /c login, /c logout, /c newpassword");
return 1;


can u see ClientMessage to ALL !

even in !naturalcmds !vehiclecmds and !commands. i hope u fix this


heh lol, you need to set it to
   
SendClientMessage(playerid, ORANGE, "/c register, /c login, /c logout, /c newpassword", 0);

Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Devian on January 17, 2010, 06:24:41 PM
nice work Tamas!
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Hancock on January 17, 2010, 06:26:39 PM
Quote from: MrAcmering on January 17, 2010, 06:04:29 PM
Quote from: Hancock on January 17, 2010, 03:50:40 PM
There is a little problem about commands ( its a little spam ) :

else if (strcmp(cmd, "!accountcmds", true) == 0) {
SendClientMessageToAll(ORANGE, "/c register, /c login, /c logout, /c newpassword");
return 1;


can u see ClientMessage to ALL !

even in !naturalcmds !vehiclecmds and !commands. i hope u fix this


heh lol, you need to set it to
   
SendClientMessage(playerid, ORANGE, "/c register, /c login, /c logout, /c newpassword", 0);



yeah i know but it will be a spam for "noob users" ( they dont know how to change it )
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Javi on January 17, 2010, 08:50:46 PM
I saw this coming :>

Nice script!  :D
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: [MK]Faudra on January 17, 2010, 09:04:26 PM
!adminsx crashes the server and there isnt any !admincmds
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: [AoD]NC on January 17, 2010, 10:07:13 PM
After the topic i thought that Tommis is back ;o.

Anyway good work Tamas. Just fix these bugs that ppl posted :).
/me is happy because now he has 2 sampel scripts for maybe learning pawn :)
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Mattz on January 17, 2010, 10:32:23 PM
Nice job!

Quote from: [AoD]NC on January 17, 2010, 10:07:13 PM
Anyway good work Tamas. Just fix these bugs that ppl posted :).

Pinned :>
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Sephiroth on January 17, 2010, 10:52:25 PM
GUPS!

nice work d00d
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Tamas on January 17, 2010, 11:14:08 PM
Quote!adminsx crashes the server and there isnt any !admincmds

Yes i know about that bug, thats why i commented out that line  :)
Other bugs will be fixed.


!admins command has been fixed and !admincmds filled up with the needed infos.
Redownload the script from the current location.
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: chn batista on January 18, 2010, 04:23:14 AM
nice!
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Tamas on January 22, 2010, 06:03:50 PM
Update!
Current Version: 1.15

A lot of bugs has been fixed and added some new admin & public commands (check the commands.ini for more informations)

From now the missing function (getplayerskin) available  :)
The new server call (PlayerVersion) also added.

If you want to enable/disable the basic r2 functions check the serverconfig file where you can do this. Use boolean values (0=disabled,1=enabled)
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Force on January 22, 2010, 06:07:42 PM
Quote from: Tamas on January 22, 2010, 06:03:50 PM
Update!
Current Version: 1.15

A lot of bugs has been fixed and added some new admin & pubic commands (check the commands.ini for more informations)

From now the missing function (getplayerskin) available  :)
The new server call (PlayerVersion) also added.

If you want to enable/disable the basic r2 functions check the serverconfig file where you can do this. Use boolean values (0=disabled,1=enabled)

Download: http://www.rtrading.extra.hu/GUPS1.15.rar


Nice work, but pubic commands? :P
Title: Re: General Use Pawn Scripts 1.15
Post by: JJFCLiski on January 22, 2010, 06:24:35 PM
Nice Work ,Tamas ,PlayerX ,Falcon none more?
Title: Re: General Use Pawn Scripts 1.15
Post by: Tamas on January 22, 2010, 09:50:51 PM
And Xerxes
Title: Re: General Use Pawn Scripts 1.15
Post by: JJFCLiski on January 23, 2010, 02:18:32 AM
Quote from: Tamas on January 22, 2010, 09:50:51 PM
And Xerxes
o yeah ,Good Job and Work :D
Title: Re: General Use Pawn Scripts 1.15
Post by: Jancis_LV on January 24, 2010, 09:11:22 AM
Please create !mycars command and !getcar works only one time
Title: Re: General Use Pawn Scripts 1.15
Post by: BooMario[BR] on January 26, 2010, 11:46:44 AM
Very Good Script, Congratulations!
Title: Re: General Use Pawn Scripts 1.15
Post by: donttoucht on January 26, 2010, 09:38:33 PM
Memory spam in 95% of script, huge stack/heap usage, laggy ass mode.

new cmd[256], tmp[256];
Max a person writes isn't 256 chars for sure, more than that - 256 seems below limit of chars you can write in chatbox (not sure but it seems to be max 64 symbols).

whole script full of this.

static szGameModeName[128] = "GUPS 1.15";
...
IP[256];

I only see 9 symbols, why it's 128 cells?
IP can be 256 chars?

new PlayerInfo[MAX_PLAYERS][pInfo];
MAX_PLAYERS is max amount of players for vcmp, it's 100. But what if you have 40 slots only? What for you create 60 more? What for 60 more loop executions?

if (!IsPlayerConnected(killerid)) { // This is the "real" OnPlayerDeath
INVALID_PLAYER_ID isn't enough? Function executes slower than const.

+ infinity more things i cba to write.

BTW: "general" use, what is this? You mean like script intended to be "base" for start? If so... It's using a waaaaaaay more resources than a "base" script should.

I've been replacing all bool arrays with single vars to use with binary operations (switching bits) recently to reduce memory usage for not that "big" mode, i'm a bit amazed of all the stuff you write in this "general" script.

My suggestion is - NEVER use this even as "example" script.
Title: Re: General Use Pawn Scripts 1.15
Post by: Tamas on January 26, 2010, 11:19:29 PM
QuoteIP can be 256 chars?

Actually it can be 16  :)
But I couldn't compiled when i used "16" I don't know why, i tried to use higher values but the same happened...

My suggestion is everyone can decide what to use and what not, if you don't like it just ignore it, i know there are bugs in it.

QuoteMax a person writes isn't 256 chars for sure, more than that - 256 seems below limit of chars you can write in chatbox (not sure but it seems to be max 64 symbols).

I used the included script for that so I didn't noticed it could be wrong.

QuotePlease create !mycars command and !getcar works only one time

Getcar command works fine, but somehow changing vehicle location sometimes buggy.
Title: Re: General Use Pawn Scripts 1.15
Post by: rulk on January 27, 2010, 02:58:41 PM
I'm not a pawn expert, but theres no need to "bite the hand that feeds you!"

We could do with someone like samp's Y_Leѕѕ in here, i recommend reading ALL his posts, he gives a HUGE amount of tips and tricks etc

here's a link on Code optimization; http://forum.sa-mp.com/index.php?topic=79810.0
Title: Re: General Use Pawn Scripts 1.15
Post by: TheRevenge on February 05, 2010, 11:52:37 AM
nice scripts  ;D
Title: Re: General Use Pawn Scripts 1.15
Post by: Tobi on February 23, 2010, 01:18:53 PM
n1 Tamas z0r ;D
Title: Re: General Use Pawn Scripts 1.15
Post by: Kingston on February 26, 2010, 05:32:35 PM
thanks you !!!
this is very nice Scripts :D ;D
Title: Re: General Use Pawn Scripts 1.15
Post by: Ettans on February 26, 2010, 05:40:05 PM
Make sure you have /scriptfiles/ folder in your server directory.
Title: Re: General Use Pawn Scripts 1.15
Post by: maxorator on February 26, 2010, 06:06:11 PM
Quote from: Kingston on February 26, 2010, 05:32:35 PM
2- i am report this topic for moderator
Lol? What am I supposed to do here?
Title: Re: General Use Pawn Scripts 1.15
Post by: chn batista on February 27, 2010, 02:41:44 AM
C:\123\GUPS1.15\gamemodes\mode.pwn(5) : fatal error 100: cannot read from file: "dudb"

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


1 Error.

have error?
Title: Re: General Use Pawn Scripts 1.15
Post by: Ettans on February 27, 2010, 09:08:41 AM
You don't have dudb.inc in /pawno/includes directory.

http://dracoblue.net/download/dudb-24/31/
Title: Re: General Use Pawn Scripts 1.15
Post by: chn batista on February 27, 2010, 09:41:23 AM
Quote from: Ettans on February 27, 2010, 09:08:41 AM
You don't have dudb.inc in /pawno/includes directory.

http://dracoblue.net/download/dudb-24/31/
thank you very much!! :)
Title: Re: General Use Pawn Scripts 1.15
Post by: Michcio on April 03, 2010, 07:23:39 PM
Reupload please
Title: Re: General Use Pawn Scripts 1.15
Post by: thijn on April 03, 2010, 11:56:45 PM
mirror: http://www.thijn41.eu/GUPS1.15.rar
Title: Re: General Use Pawn Scripts 1.15
Post by: Tamas on April 09, 2010, 08:41:06 PM
Thanks for reuploading, and I'll update the script when 0.4 will be released  :)
Title: Re: General Use Pawn Scripts 1.15
Post by: Tamas on April 25, 2010, 10:32:33 PM
Update!
Current Version: 1.16a

Since Boss released his new PSA I just decided to update the script. Some bugs has been fixed and the code optimised. Script improoved with IRC support.

New Features:


Server configurations (camerapos, startpos, etc.) located in "scriptfiles/Configuration/Server.ini"

Download: http://thijn41.eu/GUPS/GUPS1.16a.rar (http://thijn41.eu/GUPS/GUPS1.16a.rar)
Title: Re: GUPS 1.16a
Post by: PlayerX on April 27, 2010, 12:05:54 AM
nice Tamas.  ;)
Title: Re: GUPS 1.16a
Post by: Aaron on April 27, 2010, 10:14:55 PM
cool thanks Tamas
Title: Re: GUPS 1.16a
Post by: MISHA123152 on July 09, 2010, 06:58:50 PM
How to do buy weapons? Please answer) sorry for my english im russian)
Title: Re: GUPS 1.16a
Post by: Jancis71 on July 09, 2010, 08:44:57 PM
make by yourself weapon buying script.
Title: Re: GUPS 1.16a
Post by: Spung on July 10, 2010, 02:17:07 AM
Thanks man! =D
Title: Re: GUPS 1.16a
Post by: MISHA123152 on July 10, 2010, 06:32:44 AM
please give me example buying weapon)
Title: Re: GUPS 1.16a
Post by: Tamas on July 13, 2010, 04:10:28 PM
If you want to get a weapon use the !wep command. You can make a list of all weapons with prices if needed.
Title: Re: GUPS 1.16a
Post by: x_ZeRo_x on July 23, 2010, 04:46:36 AM
Nice work Tamas here another mirror http://zerovcmp.windlord.net/downloads/GUPS1.16a.rar (http://zerovcmp.windlord.net/downloads/GUPS1.16a.rar)
Title: Re: GUPS 1.16a
Post by: MISHA123152 on July 31, 2010, 06:09:12 PM
C:\Documents and Settings\Миша Самойлов\Рабочий стол\server0.3zr2(pawn)(win)(updated2)\gamemodes\gups.pwn(3749) : warning 203: symbol is never used: "PerformSQLquery"
C:\Documents and Settings\Миша Самойлов\Рабочий стол\server0.3zr2(pawn)(win)(updated2)\gamemodes\gups.pwn(3749) : warning 203: symbol is never used: "PerformSQLquerySelect"
Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


2 Warnings.
Title: Re: GUPS 1.16a
Post by: MISHA123152 on August 01, 2010, 10:09:25 AM
how to respawn near the house that I bought?
Title: Re: GUPS 1.16a
Post by: Tamas on August 30, 2010, 01:08:06 PM
"PerformSQLquerySelect" is part of PSA, that symbol is never used as the warning message said.
You could remove it, but don't count it as an error.
Title: Re: GUPS 1.16a
Post by: MISHA123152 on August 30, 2010, 05:44:43 PM
Thanks Tamas, and how to respawn near the house that I bought?
Title: Re: GUPS 1.16a
Post by: kartikeyp1 on September 02, 2010, 05:23:38 PM
i downloaded it and running it but pickup system not work /c addprop not working it says property added but its not showing i restarted server then also not showing pickup i can only edit prop pickup to any place like bank that come with gups1.6a when downloaded i cant make new.
Title: Re: GUPS 1.16a
Post by: Tamas on September 03, 2010, 04:32:44 PM
Creating pickups during ingame is currently not possible with the pawno server.
So I think using the pickup system is totally useless until they fix it.
Title: Re: GUPS 1.16a
Post by: 88nateatx on September 05, 2010, 08:48:01 AM
I need help  :-\ could you help me make it so that you could !heal anywhere you wanna? please I'm a noob at pawn  :'(

else if (strcmp(cmd, "!heal", true) == 0) {
new Float:Health; GetPlayerHealth(playerid,Health);
                                        if(strcmp(GetPlayerLocation(playerid), "Hospital-Vice-Point-Vice-City-Beach", true) == 1)                                         

SendClientMessage(playerid,COLOR_GREEN, "You have to be at the hospital.");
  else if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
else {
SetPlayerHealth(playerid,100.0);
    SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
}
return 1;


Title: Re: GUPS 1.16a
Post by: Jancis71 on September 05, 2010, 09:31:23 PM
else if (strcmp(cmd, "!heal", true) == 0) {
      new Float:Health; GetPlayerHealth(playerid,Health);

        if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
      else {
         SetPlayerHealth(playerid,100.0);
            SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
      }
      return 1;
Title: Re: GUPS 1.16a
Post by: TheRevenge on October 03, 2010, 04:55:49 PM
link broken :/
Title: Re: GUPS 1.16a
Post by: thijn on October 16, 2010, 07:52:46 PM
Quote from: TheRevenge on October 03, 2010, 04:55:49 PM
link broken :/
Link has been fixed now.
Title: Re: GUPS 1.16a
Post by: dave on October 18, 2010, 11:24:21 AM
Quote from: TheRevenge on October 03, 2010, 04:55:49 PM
link broken :/
Title: Re: GUPS 1.16a
Post by: Tamas on October 21, 2010, 10:35:09 AM
Link has been fixed.
Use google chrome, internet explorer or anything else except firefox.
Title: Re: GUPS 1.16a
Post by: 88nateatx on October 23, 2010, 04:31:18 PM
Quote from: Jancis71 on September 05, 2010, 09:31:23 PM
else if (strcmp(cmd, "!heal", true) == 0) {
      new Float:Health; GetPlayerHealth(playerid,Health);

        if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
      else {
         SetPlayerHealth(playerid,100.0);
            SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
      }
      return 1;

This Pawno example can teach ya so much about Pawn Scripting, and just makes ya wanna build the server yourself :D hmmm... a zombeh server? maybe lol
Title: Re: GUPS 1.16a
Post by: Callum on October 29, 2010, 07:54:01 PM
How exactly can you map new properties? And when I looked at the property files, where exactly is the property pos stored?
Title: Re: GUPS 1.16a
Post by: Terminatorupgrade 2 on November 04, 2010, 07:40:02 AM
how to add prop from pawno server please .give any code

Quotezombeh server? maybe lol
Sure i made one  ;D

~Don't double post~
Title: Re: GUPS 1.16a
Post by: Devastator10 on January 05, 2011, 01:35:12 AM
http://www.fileserve.com/file/JXhechx

another mirror  :P
Title: Re: GUPS 1.16a
Post by: Tamas on January 06, 2011, 06:37:55 PM
Other mirrors not needed.
Title: Re: GUPS 1.16a
Post by: Terminatorupgrade 2 on January 08, 2011, 08:38:17 AM
QuoteOther mirrors not needed.
HaLL of Mirrors
Title: Re: GUPS 1.16a
Post by: yazeen on March 18, 2011, 02:34:23 PM
Addpickup and addveh Bugged
Title: Re: GUPS 1.16a
Post by: Robd on March 28, 2011, 04:05:03 AM
Yes, very
Quote from: yazeen on March 18, 2011, 02:34:23 PM
Addpickup and addveh Bugged
Title: Re: GUPS 1.16a
Post by: tato on March 28, 2011, 04:40:55 AM
Quote from: Robd on March 28, 2011, 04:05:03 AM
Yes, very
Quote from: yazeen on March 18, 2011, 02:34:23 PM
Addpickup and addveh Bugged
ye i know
Title: Re: General Use Pawn Scripts 1.0Beta
Post by: Gamer on March 29, 2011, 12:28:58 AM
Quote from: Tamas on January 22, 2010, 06:03:50 PM
Update!
Current Version: 1.15

A lot of bugs has been fixed and added some new admin & public commands (check the commands.ini for more informations)

From now the missing function (getplayerskin) available  :)
The new server call (PlayerVersion) also added.

If you want to enable/disable the basic r2 functions check the serverconfig file where you can do this. Use boolean values (0=disabled,1=enabled)

Nice !!
Title: Re: GUPS 1.16a
Post by: tato on March 29, 2011, 03:17:24 AM
some commands are bugged
Title: Re: GUPS 1.16a
Post by: yazeen on March 29, 2011, 06:11:58 AM
Tamas can u fix the Addprop, Addveh please!!!
Title: Re: GUPS 1.16a
Post by: Robd on March 29, 2011, 10:26:24 PM
Quote from: yazeen on March 29, 2011, 06:11:58 AM
Tamas can u fix the Addprop, Addveh please!!!
There isn't much anyone can do about the Addveh until VCMP gets updated (haha nice joke) as AddPlayerVehicle, SetVehiclePos, and SendRconCommand are all bugged.
Title: Re: GUPS 1.16a
Post by: tato on March 30, 2011, 04:42:33 AM
Quote from: Robd on March 29, 2011, 10:26:24 PM
Quote from: yazeen on March 29, 2011, 06:11:58 AM
Tamas can u fix the Addprop, Addveh please!!!
There isn't much anyone can do about the Addveh until VCMP gets updated (haha nice joke) as AddPlayerVehicle, SetVehiclePos, and SendRconCommand are all bugged.
maby
Title: Re: GUPS 1.16a
Post by: Robd on March 31, 2011, 12:14:55 AM
I vote we start a riot and complain about VCMP lack of funtion.
/me had a good idea
/me gets his a$$ beat by a VCMP forum cop
/me had a bad idea
/me frowns
Title: Re: GUPS 1.16a
Post by: BaSSMaN on April 16, 2011, 10:37:13 PM
Lol.
I have a solution of addstatippickup bug, basically the loadpickup() cmd loads only 1 pickup, so that's a FAIL.
Title: Re: GUPS 1.16a
Post by: BIG[H] on April 17, 2011, 11:08:25 AM
VCMP lack of penis ;)
Title: Re: GUPS 1.16a
Post by: DeWilX on April 24, 2011, 02:30:03 PM
else if (strcmp(cmd, "!getcar", true) == 0) {
  tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!strlen(tmp)) SendClientMessage(playerid,COLOR_GREEN, "USAGE: !getcar [VehicleID]");
else if(IsVehicleOwnedShared(strval(tmp),gPlayers[playerid]) == -1) SendClientMessage(playerid,COLOR_GREEN, "You do not have the keys for that vehicle.");
else {
new Float:Angle;
GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid,Angle);
if(!Angle) SendClientMessage(playerid,COLOR_GREEN,"Error: Invalid vehicle!");

SetVehiclePos(strval(tmp),x+3,y+3,z,Angle);
format(szMsg,sizeof(szMsg),"Spawning vehicle:[ %d ]",strval(tmp));
SendClientMessage(playerid,COLOR_GREEN,szMsg);
}
return 1;
}


This command spawns only one time vehicle, when I want again vehicle I type "!getcar x" nothink no car only show "Spawning vehicle: x".

And I have question how to make time go?

Sorry, for bad English.
Title: Re: GUPS 1.16a
Post by: BIG[H] on April 24, 2011, 02:57:03 PM
xD if you sit in that car it will bug it Try first to respawn it by


/c respawn xxx

then
/c getcar xxx

hope it will work quite well
Title: Re: GUPS 1.16a
Post by: DeWilX on April 24, 2011, 04:43:15 PM
doesn't work :(
Title: Re: GUPS 1.16a
Post by: asad3man on April 25, 2011, 06:46:45 PM
how to login as admin in this script tell me
Title: Re: GUPS 1.16a
Post by: StriKe on April 25, 2011, 06:55:12 PM
Quote from: asad3man on April 25, 2011, 06:46:45 PM
how to login as admin in this script tell me

Once you have registered your nick in the server.
Go to Server Directory\scriptfiles\Users\Yournick.ini
Open that ini and find this Level=1 and change the value to 10.
Title: I Want to add more Characters Help!
Post by: asad3man on April 25, 2011, 07:22:48 PM
i want to add more players in GUPS 1.16 So what i have to do how to find Spawn Characters and how to add them?
Title: Re: GUPS 1.16a
Post by: StriKe on April 25, 2011, 07:36:24 PM
Go to Server Directory\scriptfiles\Characters\SpawnCharacters.ini

Add more skins.
http://hunting-arena.in/files/vcmp/vcmp-skin-id-listing.pdf
Title: Re: GUPS 1.16a
Post by: asad3man on April 25, 2011, 08:40:42 PM
How to ApPly these
Title: Re: GUPS 1.16a
Post by: StriKe on April 25, 2011, 09:02:08 PM
Please search the forum.
http://forum.vicecitymultiplayer.com/index.php?topic=95.msg445#msg445
http://forum.vicecitymultiplayer.com/index.php?topic=1344.msg9481#msg9481