General Use Pawn ScriptFeatures:
- Registration System
- Admin System
- Vehicle System
- Property System
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:
- DracoBlue(plugins)
- Falcon(Developer) ;D
- Xerxes(plugins)
- PlayerX(Functions)
- Boss(PSA)
Current Version: 1.16aMirror#1: Download (http://thijn.vrocker-hosting.co.uk/vcmp/GUPS1.16a.rar)
Alright !
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
nice
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);
nice work Tamas!
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 )
I saw this coming :>
Nice script! :D
!adminsx crashes the server and there isnt any !admincmds
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 :)
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 :>
GUPS!
nice work d00d
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.
nice!
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)
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
Nice Work ,Tamas ,PlayerX ,Falcon none more?
And Xerxes
Please create !mycars command and !getcar works only one time
Very Good Script, Congratulations!
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.
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.
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
nice scripts ;D
n1 Tamas z0r ;D
thanks you !!!
this is very nice Scripts :D ;D
Make sure you have /scriptfiles/ folder in your server directory.
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?
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?
You don't have dudb.inc in /pawno/includes directory.
http://dracoblue.net/download/dudb-24/31/
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!! :)
Reupload please
mirror: http://www.thijn41.eu/GUPS1.15.rar
Thanks for reuploading, and I'll update the script when 0.4 will be released :)
Update!
Current Version:
1.16aSince 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:
- Property System
- Pickup System
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)
nice Tamas. ;)
cool thanks Tamas
How to do buy weapons? Please answer) sorry for my english im russian)
make by yourself weapon buying script.
Thanks man! =D
please give me example buying weapon)
If you want to get a weapon use the !wep command. You can make a list of all weapons with prices if needed.
Nice work Tamas here another mirror http://zerovcmp.windlord.net/downloads/GUPS1.16a.rar (http://zerovcmp.windlord.net/downloads/GUPS1.16a.rar)
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.
how to respawn near the house that I bought?
"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.
Thanks Tamas, and how to respawn near the house that I bought?
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.
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.
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;
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;
link broken :/
Link has been fixed.
Use google chrome, internet explorer or anything else except firefox.
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
How exactly can you map new properties? And when I looked at the property files, where exactly is the property pos stored?
how to add prop from pawno server please .give any code
Quotezombeh server? maybe lol
Sure i made one ;D
~Don't double post~
http://www.fileserve.com/file/JXhechx
another mirror :P
Other mirrors not needed.
QuoteOther mirrors not needed.
HaLL of Mirrors
Addpickup and addveh Bugged
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 !!
some commands are bugged
Tamas can u fix the Addprop, Addveh please!!!
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.
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
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
Lol.
I have a solution of addstatippickup bug, basically the loadpickup() cmd loads only 1 pickup, so that's a FAIL.
VCMP lack of penis ;)
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.
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
doesn't work :(
how to login as admin in this script tell me
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.
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?
Go to Server Directory\scriptfiles\Characters\SpawnCharacters.ini
Add more skins.
http://hunting-arena.in/files/vcmp/vcmp-skin-id-listing.pdf
How to ApPly these
Please search the forum.
http://forum.vicecitymultiplayer.com/index.php?topic=95.msg445#msg445
http://forum.vicecitymultiplayer.com/index.php?topic=1344.msg9481#msg9481