Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 281 online users. » 1 Member(s) | 278 Guest(s) Bing, Google, Mido
|
Latest Threads |
Open.mp / SAMP Query
Forum: Releases
Last Post: laex
Yesterday, 04:07 AM
» Replies: 2
» Views: 48
|
some text appearing in my...
Forum: Support
Last Post: Sizy
2025-07-08, 07:33 AM
» Replies: 0
» Views: 15
|
Offensive-Core: TDM
Forum: Gamemodes
Last Post: NikitaFoxze
2025-07-08, 12:13 AM
» Replies: 3
» Views: 3,647
|
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
2025-07-06, 10:28 AM
» Replies: 0
» Views: 34
|
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
2025-07-05, 11:35 PM
» Replies: 0
» Views: 28
|
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
2025-07-05, 11:05 PM
» Replies: 2
» Views: 69
|
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 60
|
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,203
|
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 70
|
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 446
|
|
|
Oceanic Roleplay | [2024] |
Posted by: Danny - 2024-03-06, 11:45 PM - Forum: Advertisements
- No Replies
|
 |
![[Image: 43HdR2C.png]](http://i.imgur.com/43HdR2C.png)
Our server is not only unique by script, but also by setting. We know what makes a successful community and we know what doesn't. We've all been players ourselves and we know what we desire from a good server to have a fun roleplaying experience. For that reason, we have decided to break the norm of traditional servers and move away from an American based setting. Although a large majority of our players will in fact be American themselves, we have decided to create something unique by setting our location within a fictional country but still using GTA inspired names for our localisation as this is something we cannot avoid. We aim to take inspiration from all across the world and create a brand new experience you won't see anywhere else! Our fictional country is set in the Oceanic/Australasian continent of the globe and so you may find a lot of differences from your traditional roleplay server but rest assured you will still have a great experience. We are going to also be roleplay the era of 2004/2007 with people still using facebook and social media apps such as those.
![[Image: s78OGtq.png]](http://i.imgur.com/s78OGtq.png)
Our community
Our server is aimed at a high level of realistic roleplay however our friendly staff are always available to offer help and support to newer players reach this desired standard.
At this moment in time, we are still in our development stage but we are making good progress and coming close to a release once we set up the Discord and the forums. We still need to establish a supportive administrator team too!. I would therefore like to take the chance to advertise our community pre-release and begin the initial setup of our staff / faction teams.
We are based in Bone County in order to reduce the size of the roleplaying area, thus creating more enjoyable interaction with one another. The whole of the county is available to utilised though and so you are not restricted in how you desire to play. Numerous positions are available and we are particuarly interested in professional individuals who can help us progress and develop through our launch.
Our Unique Selling Point
A new innovative way of roleplaying
New continental setting
The freedom to design your own faction with limited restrictions (rules apply)
Professional staff team
Dynamic in game mapping
Personally designed maps for your faction/group
Unique script and features
Heavy roleplay
We are always open to new ideas, suggestions and support
In summary, we like to think of ourselves as a friendly community of players, ran by players. So why not join us today? You won't regret it.
|
|
|
Rebound Gaming Roleplay |
Posted by: N0FeaR - 2024-03-05, 04:02 PM - Forum: Advertisements
- Replies (2)
|
 |
Rebound Gaming Roleplay is a an English speaking community that is all about providing the best quality roleplay for their members. We at Rebound Gaming Roleplay keep a high standard of roleplay and enforce all of our rules fully. Our staff is trained to act professionally and are the best out there when it comes to punishing rule-breakers and solving in-game problems. The server has a very strict rule of always roleplaying to the best of your ability. Trolling, bad grammar and other impurities in roleplay will be punished by our administrator team.
Rebound Gaming Roleplay has the following features:
[*]Default roleplay features such as buyable vehicles, houses and businesses
[*]Default rolepaly factions such as LSPD, LSFD, LSG, DOC, San News and Radio Los Santos
[*]Default roleplay jobs such as Taxi Driver, Mechanic, Trucker, Pizza Boy, Farmer and Streetsweeper
[*]In-game registration system which consists of multiple roleplay related questions which are later submitted to the Helper team to decide if you are qualified to join the roleplay environment or not
[*]Inventory system for players, vehicles, houses and businesses that allows players to store their items anywhere
[*]Safe system for houses and businesses that allows for players to access that particular house's or businesses' inventory if you have the right combination
[*]Vehicle engine and battery life system that requires mechanics to work on your vehicle in order to get you back on the road if you ever break down
[*]Weapon clip system that forces more realistic roleplay on players and requires them to reload in a realistic manner
[*]Weapon license system which is controlled by the LSPD
[*]House and business backdoor system that allows for two entrances into each house or business
[*]Marijuana growing and crack cooking system where official factions are given the rights to acquire the required materials to do so
[*]Weapon warehouse system where official factions can acquire weapons and regulate the flow of them into the server
[*]An attachments system where players can head to the clothing store and design their character to their liking
[*]A realistic knock out system where players get knocked out when low on HP. (Melee weapons only)
The Script itself has been a work in progress for over 8 years. And is constantly being worked on by Rebound Gaming Staff to make roleplay environments more fun and unique with all realism.
Images
[*]![[Image: bball1.png]](https://media.rg-rp.net/SS/basketball/bball1.png)
[*]![[Image: bball2.png]](https://media.rg-rp.net/SS/basketball/bball2.png)
[*]![[Image: clothes1.png]](https://media.rg-rp.net/SS/clothes/clothes1.png)
[*]![[Image: clothes2.png]](https://media.rg-rp.net/SS/clothes/clothes2.png)
[*]![[Image: clothes_color1.png]](https://media.rg-rp.net/SS/clothes/clothes_color1.png)
[*]![[Image: armory_lspd.png]](https://media.rg-rp.net/SS/faction/armory_lspd.png)
[*]![[Image: tag.png]](https://media.rg-rp.net/SS/faction/tag.png)
[*]![[Image: fish1.png]](https://media.rg-rp.net/SS/fishing/fish1.png)
[*]![[Image: fishcaught.png]](https://media.rg-rp.net/SS/fishing/fishcaught.png)
[*]![[Image: fishsell.png]](https://media.rg-rp.net/SS/fishing/fishsell.png)
[*]![[Image: inv.png]](https://media.rg-rp.net/SS/inventory/inv.png)
[*]![[Image: fac.png]](https://media.rg-rp.net/SS/ucp/fac.png)
[*]![[Image: ucp.png]](https://media.rg-rp.net/SS/ucp/ucp.png)
[*]![[Image: 1.png]](https://media.rg-rp.net/SS/vehicles/1.png)
[*]![[Image: 2.jpg]](https://media.rg-rp.net/SS/vehicles/2.jpg)
[*]![[Image: 3.png]](https://media.rg-rp.net/SS/vehicles/3.png)
[*]![[Image: carkey1.png]](https://media.rg-rp.net/SS/vehicles/carkey1.png)
[*]![[Image: carkey2.png]](https://media.rg-rp.net/SS/vehicles/carkey2.png)
[*]![[Image: radio2.png]](https://media.rg-rp.net/SS/vehicles/radio2.png)
[*]![[Image: trunk_demo.png]](https://media.rg-rp.net/SS/vehicles/trunk_demo.png)
[*]![[Image: dualsawnoff.png]](https://media.rg-rp.net/SS/weapons/dualsawnoff.png)
[*]![[Image: shell_casing.png]](https://media.rg-rp.net/SS/weapons/shell_casing.png)
[*]![[Image: tracer_shot.png]](https://media.rg-rp.net/SS/weapons/tracer_shot.png)
We're looking for more staff members.
http://rg-rp.net
https://discord.gg/gypupfHFjA
|
|
|
:: San Fierro Cops And Robbers (0.3.7) :: is Back |
Posted by: scorpionadvs - 2024-03-04, 02:32 PM - Forum: Advertisements
- No Replies
|
 |
[b]Dive into the heart-pounding chaos of our reborn Cops and Robbers universe on San Andreas Multiplayer!
[/b]
Welcome to the exhilarating revival of SF-CNR, where the streets are mean, the stakes are high, and the thrill is unmatched!
[b]Embrace the role of a dedicated law enforcer or a sly, cunning criminal – all within a dynamic virtual world meticulously designed for pure, unadulterated Fun!
[/b]
[b]Immerse yourself in the captivating streets of San Andreas, where roleplay gameplay meets the genuine passion of our community. Every moment is an opportunity to shape your own narrative, ensuring an authentic gaming experience that keeps you coming back for more!
[/b]
[b]Create your own story as you engage in epic heists, high-speed pursuits, and intricate schemes. Whether you're wearing a badge or plotting the perfect crime, our ethos is all about putting the FUN first!
[/b]
[b]Join a community of like-minded gamers who share your passion for exhilarating multiplayer action. Form alliances, challenge rivals, and carve out your own legacy in the ever-evolving narrative of our Cops and Robbers saga!
[/b]
[b]This isn't just a game; it's a community-driven experience. Rewrite the rules and embark on an unforgettable journey through the streets of San Andreas!
[/b]
[b]Server IP: 46.183.184.33:5508
Discord: [b][b][u]https://discord.me/sfcnr
[/u][/b][/b][/b]website: http://www.sf-cnr.optikl.ink
--
[b][b]Unleash the chaos. Live the legend. Join us in this adventure, where the focus is on the joy of gaming!
[/b][/b]
- Community reminder: We're a non-commercial project, dedicated to providing a genuine and fun gaming experience for all players.
|
|
|
SA-MP: Map Construction |
Posted by: JR_Junior - 2024-03-02, 01:39 PM - Forum: General Discussions
- No Replies
|
 |
Hello! I would like to know if there is a more up-to-date map editor, that is not an in-game editor and also that is not the MTA.
I'm using JernejL's map editor, but as I currently only have a notebook I'm facing the same problem as other users: https://github.com/JernejL/samp-map-editor/issues/8
I really like this editor, but it is not optimized for notebooks, much less for Windows 11, because when I was using Windows 10 the problem was just selecting objects with the mouse, now it gives an error of "Access Violation at Address.. ." after several attempts to select the object.
Thanks if anyone has any suggestions!
|
|
|
Reproduzir música em uma area especifica |
Posted by: Diihrox - 2024-03-02, 04:04 AM - Forum: Pawn Scripting
- Replies (6)
|
 |
Bem pessoal, eu gostaria da ajuda de voces para me ajudar com um problema, eu quero que fique tocando uma música na Groove Street e quando um player entrar naquela área, ele podera ouvir a música. Meu código base!
CMD:tocar(playerid)
{
if (IsPlayerInRangeOfPoint(playerid, 2.0, 2466.4934, -1658.9978, 13.3907))
{
new i;
for (i = 0; i < MAX_PLAYERS; i++)
{
new Float:P[3];
GetPlayerPos(i, P[0], P[1], P[2]);
if (IsPlayerInRangeOfPoint(i, 90.0, 2466.4934, -1658.9978, 13.3907))
{
PlayAudioStreamForPlayer(i, "http://stream.com.br/radio", P[0], P[1], P[2], 90.0, 1);
}
}
}
return 1;
Obrigado pela atenção!
}
|
|
|
SFSE: Stunt, Race, Deathmatch and Minigames! |
Posted by: SFSE - 2024-03-01, 06:07 PM - Forum: Advertisements
- No Replies
|
 |
play.SF-SE.net:7777 or 149.202.42.25:7777
Hello!
On the hunt for a friendly SA:MP / open.mp community with lots of different gamemodes? SFSE might be worth a look...
Some of our standout features include:
- Freeroam
- Fallout
- Derby
- Race
- Capture the flag
- Maze
- Cops and Robbers
- Battle Royale
- Dogfight
- Stunt War
- Deathmatches
- Jobs
...and much more!
Again, you can reach us at play.SF-SE.net:7777 or 149.202.42.25:7777
Why not check out our website as well? You can find us at www.sf-se.net
Cheers!
|
|
|
[ENG] North Dakota Roleplay |
Posted by: kayla - 2024-02-27, 04:44 PM - Forum: Advertisements
- No Replies
|
 |
![[Image: Jzg1CUP]](https://imgur.com/Jzg1CUP)
A medium-high roleplay server based on the script of San Andreas Roleplay that goes back to 2011, so come join us on our adventure whether you want to be on the legal \ or illegal side of the server you're always welcome, our grand opening will be announced shortly after we've gathered a decent player base of people who would like to bring back the nostalgia of playing the server and without further ado here's everything you need to know
invite your friends to get in-game rewards once the server launches
2 invites = 200k in-game start
5 invites = 500k
10 invites = Bronze VIP
20 invites = Silver VIP
Disclaimer: The script used in this server is entirely the work of SARP developers Jacob Malcom, Desmond DeSantos, Hank James, Avery Booker, $kylar, Golden, and iGetty (leaked script). I take no credit for its development; it is only used to evoke nostalgia for players.
|
|
|
How i can make spawn in enterior ? |
Posted by: Zlokapa - 2024-02-27, 04:29 PM - Forum: Programming
- No Replies
|
 |
Can someone help me?
How to set the spawn in the interior someone, I tried with the coordinates of the interior but I always fall through the texture
|
|
|
[Help] Can't get Player Money to Update through MySQL |
Posted by: YoungKrypt - 2024-02-25, 09:12 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Hello San Andreas...
So I have begun scripting a SAMP Server.
I found MySQL a little difficult so I used someone elses MySQL DB and it all works perfectly...
I thought I could just Add Money into the MySQL queries but no matter how I do it, the game loads the Money from MySQL (Default 25,000)
But I don't know how to get the Game to Save MySQL for Money.
I have tried adding it but it doesn't auto -update...
I would like some help with it if someone can help...
(Here is my entire code, some parts may not be neccessary).
Code: // This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <a_sampdb>
#include <zcmd>
#include <sscanf2>
#include <a_mysql>
#include <streamer>
#include <bcrypt> //Bcrypt is the best way of encrypting passwords.
#include <foreach> //foreach standalone version
//Defining MySQL stuff here
#pragma warning disable 239
#pragma warning disable 217
#pragma warning disable 219
#pragma warning disable 203
#define DB_HOST "localhost" //IP of your host. In case of using it on same pc, use localhost or 127.0.0.1
#define DB_NAME "lascenturarp" //Name of Database you are gonna use.. I have used login, but change it according to your needs.
#define DB_USER "root" //User name of your MySQL client.
#define DB_PASS "" //Password of your MySQL client.
//Default Username is root and password is blank. You still gotta define them
//Make sure to install XAMPP server. Start Apache and MySQL service when you start the server. You can manage SQL databases from PHPMyAdmin which comes in built in XAMPP.
enum //Always use some kind of structure for Dialog IDs.
{
DIALOG_ASK,
DIALOG_REGISTER,
DIALOG_LOGIN,
DIALOG_GIVECAR
};
enum pinfo
{
MasterID,
Float:PX,
Float:PY,
Float:PZ,
Float:Rot,
Skin,
Level,
money,
bool:LoggedIn
};
new pInfo[MAX_PLAYERS][pinfo];
new MySQL:handle; //This connection handle of data type MySQL is required to carry out Mysql operations.
//------------------------------------------//
#define strcpy(%0,%1) strcat(((%0[0] = 0), %0), %1);
#define SCM SendClientMessage;
#define SM SendMessage;
main()
{
print("\n----------------------------------");
print(" Las Centura RP by Xero Xipher");
print("----------------------------------\n");
}
//----------------------------------//
//Color Codes//
#define Yellow 0xd9ff00AA;
#define Orange 0xff8800AA;
#define DarkRed 0xa81100AA;
#define Red 0xff1900AA;
#define DarkPurple 0x960c74AA;
#define Purple 0xff14c4AA;
#define DarkBlue 0x1f1ac4AA;
#define Blue 0x5d52ffAA;
#define LightPurple 0x9263ffAA;
#define Green 0x00a613AA;
#define LightGreen 0x00e600AA;
//---------------------------------------//
//END OF COLORS//
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("RolePlay");
AddPlayerClass(0, 2186.054119, -1806.887207, 15.438260, 0, 0, 0, 0, 0, 0, 0);
SetWeather(2);
SetWorldTime(11);
handle = mysql_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
if(mysql_errno(handle) == 0) printf("[MYSQL] Connection successful"); //returns number of errors. 0 means no errors..
else
{
new error[100];
mysql_error(error, sizeof(error), handle);
printf("[MySQL] Connection Failed : %s", error);
}
//-------------------------------------------------------------------------------//
//----------------------------MAPPING--------------------------------------------//
//===============================================================================//
CreateObject(1410, 2492.00000, -1688.00000, 13.30000, 0.00000, 0.00000, 0.00000);
CreateObject(1410, 2487.52148, -1688.02161, 13.30000, 0.00000, 0.00000, 0.00000);
CreateObject(1410, 2498.62817, -1688.00000, 13.30000, 0.00000, 0.00000, 0.00000); //CJ Fence
CreateObject(19902, 2177.98682, -1770.43567, 12.53940, 0.00000, 0.00000, 0.00000); //Motel Marker
CreateObject(11699, 2437.24487, -1652.71094, 12.33990, 0.00000, 0.00000, 90.00000);
CreateVehicle(496, 2484.4080,-1654.6121,13.3145,89.9758, 044, 044, -1, 0); // Grove Blista Compact
CreateActor(270, 2522.2126, -1679.3553, 15.4970, 90);
AddStaticVehicle(402,2492.5657,-1683.4241,13.1326,271.5269,44,44); // CJ Parking
AddStaticVehicle(466,2509.7056,-1671.1899,13.1193,350.6347,44,44); // sweet parking
AddStaticVehicle(496,2157.8501,-1794.3157,13.0747,1.0815,006,006); // motel1
AddStaticVehicle(402,2162.5005,-1794.4071,13.0776,359.5714,181,181); // motel2
return 1;
}
public OnGameModeExit()
{
foreach(new i : Player)
{
if(pInfo[i][LoggedIn]) SavePlayerData(i);
}
mysql_close(handle);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
new query[64];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
mysql_format(handle, query, sizeof(query), "SELECT COUNT(Name) from `users` where Name = '%s' ", pname);
mysql_tquery(handle, query, "OnPlayerJoin", "d", playerid);
//-----------------------------------------------------------------------------------//
//-----------------------------------MAPPING-----------------------------------------//
//-----------------------------------------------------------------------------------//
RemoveBuildingForPlayer(playerid, 1410, 2487.3984, -1688.1016, 13.2813, 0.25);
RemoveBuildingForPlayer(playerid, 1410, 2491.8984, -1688.1016, 13.2813, 0.25);
RemoveBuildingForPlayer(playerid, 1410, 2498.6719, -1688.2344, 13.2813, 0.25);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
if(pInfo[playerid][LoggedIn]) SavePlayerData(playerid);
pInfo[playerid][LoggedIn] = false;
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerScore(playerid, 1);
SetPlayerSkin(playerid, 0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
SavePlayerData(playerid)
{
new query[256], pname[MAX_PLAYER_NAME], Float:px, Float:py, Float:pz, Float:rot;
GetPlayerName(playerid, pname, sizeof(pname));
GetPlayerPos(playerid, px, py, pz);
GetPlayerFacingAngle(playerid, rot);
GetPlayerMoney(playerid);
mysql_format(handle, query, sizeof(query), "UPDATE `users` set PosX = %f, PosY = %f, PosZ = %f, Rot = %f, Skin = %d, Level = %d, money = %d, WHERE Master_ID = %d", px, py, pz, rot, pInfo[playerid][Skin], pInfo[playerid][Level], pInfo[playerid][money], pInfo[playerid][MasterID]);
mysql_query(handle, query);
printf("Saved %s's data", pname);
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_REGISTER:
{
if(response)
{
bcrypt_hash(inputtext, 12, "OnPassHash", "d", playerid);
}
else Kick(playerid);
}
case DIALOG_LOGIN:
{
if(response)
{
new query[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
SetPVarString(playerid, "Unhashed_Pass",inputtext);
mysql_format(handle, query, sizeof(query), "SELECT password, Master_ID from `users` WHERE Name = '%s'", pname);
mysql_tquery(handle, query, "OnPlayerLogin", "d", playerid);
}
else Kick(playerid);
}
case DIALOG_GIVECAR:
{
switch(listitem)
{
case 0:
{
MakeCar(playerid, 496);
TakePlayerMoney(playerid, -450);
}
case 1:
{
MakeCar(playerid, 550);
TakePlayerMoney(playerid, -850);
}
case 2:
{
MakeCar(playerid, 560);
TakePlayerMoney(playerid, -2200);
}
}
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
//===============COMMANDS=======================
CMD:addmoney(playerid, params[])
{
new amount;
new string[128];
if(sscanf(params, "d", amount)) return SendClientMessage(playerid, 0x9ba803AA, "USAGE: /addMoney <amount>");
// if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, ...);
GivePlayerMoney(playerid, amount);
format(string, sizeof string, "Congratulations, you have earned $%d", amount);
SendClientSuccess(playerid, string);
return 1;
}
/*
CMD:givecar(playerid, params[])
{
new vehid;
if(sscanf(params, "i", vehid))return SendClientMessage(playerid, 0x9ba803AA, "USAGE: /givecar <vehicle id>");
MakeCar(playerid, vehid);
return 1;
}*/
CMD:mypos(playerid, params[])
{
new buffer[64], Float: px, Float: py, Float: pz;
GetPlayerPos(playerid, px, py, pz);
format(buffer, sizeof buffer, "My Position is: %f, %f, %f.", px, py, pz);
SendClientMessage(playerid, 0x416bbfAA, buffer);
return 1;
}
CMD:buycar(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_GIVECAR, DIALOG_STYLE_TABLIST_HEADERS, "Car Dealership", "{d6b004}Vehicle: \t\t{12d600}Price:\n{d6b004}Blista Compact \t\t{12d600}$475\n{d6b004}Sunrise \t\t{12d600}$850\n{d6b004}Sultan \t\t{12d600}$2200", "Buy Vehicle", "");
return 1;
}
MakeCar(playerid, vehid)
{
new Float:px, Float:py, Float:pz;
GetPlayerPos(playerid, px, py, pz);
CreateVehicle(vehid, px, py, pz, 0, 0, 0, -1);
SendClientSuccess(playerid, "Congratulations, you have just received a new vehicle!");
return 1;
}
TakePlayerMoney(playerid, amount)
{
new amount, string[128];
// if(sscanf(params, "i", amount)) return SendClientMessage(playerid, 0x9ba803AA, "USAGE: /addMoney <amount>");
GivePlayerMoney(playerid, -amount);
format(string, sizeof string, "You have $%d deducted from your bank account.", amount);
SendClientError(playerid, string);
return 1;
}
SendClientSuccess(playerid, str[])
{
new nStr[128];
format(nStr, sizeof(nStr), "[SUCCESS]: {FFFFFF}%s", str);
SendClientMessage(playerid, 0x11a800AA, nStr);
return 1;
}
SendClientError(playerid, str[])
{
new nStr[128];
format(nStr, sizeof(nStr), "[ERROR]: {FFFFFF}%s", str);
SendClientMessage(playerid, 0xff1803AA, nStr);
return 1;
}
forward OnPlayerJoin(playerid);
public OnPlayerJoin(playerid)
{
new rows;
cache_get_value_index_int(0, 0, rows);
if(rows) ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "This account is found on your database. Please login", "Login", "Quit");
else ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", "This account not is found on your database. Please register", "Register", "Quit");
return 1;
}
forward OnPlayerRegister(playerid);
public OnPlayerRegister(playerid)
{
SendClientMessage(playerid, 0x0033FFFF /*Blue*/, "Thank you for registering! You can now Login");
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Thank you for registering! You can now Login with\npassword you just used to register.", "Login", "Quit");
return 1;
}
forward OnPlayerLogin(playerid);
public OnPlayerLogin(playerid)
{
new pPass[255], unhashed_pass[128];
GetPVarString(playerid, "Unhashed_Pass",unhashed_pass,sizeof(unhashed_pass));
if(cache_num_rows())
{
cache_get_value_index(0, 0, pPass);
cache_get_value_index_int(0, 1, pInfo[playerid][MasterID]);
bcrypt_check(unhashed_pass, pPass, "OnPassCheck", "dd",playerid, pInfo[playerid][MasterID]);
}
else printf("ERROR ");
return 1;
}
forward OnPassHash(playerid);
public OnPassHash(playerid)
{
new pass[BCRYPT_HASH_LENGTH], query[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
bcrypt_get_hash(pass);
mysql_format(handle, query, sizeof(query), "INSERT INTO `users`(Name, Password) VALUES('%s', '%e')", pname, pass);
mysql_tquery(handle, query, "OnPlayerRegister", "d", playerid);
return 1;
}
forward OnPassCheck(playerid, DBID);
public OnPassCheck(playerid, DBID)
{
if(bcrypt_is_equal())
{
SetPlayerInfo(playerid, DBID);
}
else ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "The password you just entered is wrong.\nPlease Try again!", "Login", "Quit");
return 1;
}
SetPlayerInfo(playerid, dbid)
{
new query[128];
mysql_format(handle, query, sizeof(query), "SELECT PosX, PosY, PosZ, Rot, Skin, Level, money FROM `users` WHERE Master_ID = %d", dbid);
new Cache:result = mysql_query(handle, query);
cache_get_value_index_float(0, 0, pInfo[playerid][PX]);
cache_get_value_index_float(0, 1, pInfo[playerid][PY]);
cache_get_value_index_float(0, 2, pInfo[playerid][PZ]);
cache_get_value_index_float(0, 3, pInfo[playerid][Rot]);
cache_get_value_index_int(0, 4, pInfo[playerid][Skin]);
cache_get_value_index_int(0, 5, pInfo[playerid][Level]);
cache_get_value_index_int(0, 6, pInfo[playerid][money]);
pInfo[playerid][LoggedIn] = true;
cache_delete(result);
SetPlayerScore(playerid, pInfo[playerid][Level]);
SetSpawnInfo(playerid, 0, pInfo[playerid][Skin], pInfo[playerid][PX], pInfo[playerid][PY], pInfo[playerid][PZ],pInfo[playerid][Rot], 0, 0, 0, 0, 0, 0);
new money;
cache_get_value_int(0, "money", money);
GivePlayerMoney(playerid, pInfo[playerid][money]);
TogglePlayerSpectating(playerid, false);
TogglePlayerControllable(playerid, true);
new name[MAX_PLAYER_NAME], str[80];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "Welcome to the server, {FFFFFF}%s", name);
SendClientMessage(playerid, -1, str);
DeletePVar(playerid, "Unhashed_Pass");
SpawnPlayer(playerid);
return 1;
}
|
|
|
Open.mp server |
Posted by: N0FeaR - 2024-02-25, 12:34 PM - Forum: Support
- Replies (2)
|
 |
when i convert my server to Open.mp my plugins wont load any idea what could be the problem ?
Code: [13:32:24] [Info] Loading plugin: crashdetect
[13:32:24] [Info] Could not load plugin:
Det går inte att hitta den angivna modulen.
[13:32:24] [Info] Loading plugin:
[13:32:24] [Info] Could not load plugin:
Det går inte att hitta den angivna modulen.
[13:32:24] [Info] Loading plugin: sscanf
[13:32:24] [Info] Could not load plugin:
|
|
|
|