Regular Players Club help!
#1

Hey All!
I need a little help! So, I created a regular players club and i have a question. How can I make for the regular players to be able to enter?
For example:
Player1 - Not regular - He can't enter
Player2 - Regular - He can enter
I would like to the person who has name in a .txt file to be able to enter.
For Example:
Txt file:
Player2 - This is the player's name
And Player2 can enter to the regular players club.
Sorry for my bad english...
Somebody help me please! Thx!
Reply
#2

Try Dini.
Reply
#3

Yeah i know it.. but i don't wanna write a complete register system.. Any other ideas?
Reply
#4

You don't need to write a registration system, use Dini to save the names in a file.

http://forum.sa-mp.com/index.php?topic=71935.0
Reply
#5

Okay thx and when it saves to file how can i script my fs to read the names from the txt file?
Reply
#6

dini_Set(filename[], key[], value[]) will WRITE and dini_Get(filename[], key[]) will READ.
Reply
#7

Okay thx.. but can you make it for me? Please..
Here is the code:
Код:
#include <a_samp>
new rpcenter, rpcexit, rpcmoney, rpcarmour;
public OnFilterScriptInit()
{
rpcenter = CreatePickup(1272, 1, 2127.5317,2380.1128,10.8203);
rpcexit = CreatePickup (1272, 1, 965.3341,-53.1350,1001.1246);
rpcmoney = CreatePickup (1274, 2, 947.2523,-41.9028,1001.1166);
rpcarmour = CreatePickup (1242, 2, 947.7576,-61.1930,1001.1172);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == rpcenter) {
GameTextForPlayer(playerid, "~w~..::Halado Jatekosok Clubja::..", 3500, 1);
SendClientMessage(playerid,YELLOW, "Belйptйl a Haladу Jбtйkosok Clubjбba! TILOS ITT DM-ELNI!");
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 960.6447,-53.1190,1001.1172);
SetPlayerFacingAngle(playerid, 450.0);
SetCameraBehindPlayer(playerid);
}
if(pickupid == rpcexit) {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2127.8137,2377.1260,10.8203);
SetPlayerFacingAngle(playerid, 540.0);
SetCameraBehindPlayer(playerid);
}
if(pickupid == rpcmoney) {
F_GivePlayerMoney(playerid, RPCPICKUP_MONEY);
} else if(pickupid ==rpcarmour) {
SetPlayerArmour(playerid, 100.0);
}
return 1;
}
Reply
#8

Please help me
Reply
#9

Quote:
Originally Posted by bpeterson
Okay thx.. but can you make it for me? Please..
This is Scripting discussion not Script Request
Reply
#10

Okay, Sorry. (Please visit my reply in Script Request )
Reply
#11

Please! I Can't resolve it!
Reply
#12

Please!
Reply
#13

Edit: NVM I thought the script ain't working, but no, we won't script it for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)