Posts: 209
Threads: 19
Joined: Dec 2008
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!
Posts: 209
Threads: 19
Joined: Dec 2008
Yeah i know it.. but i don't wanna write a complete register system.. Any other ideas?
Posts: 209
Threads: 19
Joined: Dec 2008
Okay thx and when it saves to file how can i script my fs to read the names from the txt file?
Posts: 1,464
Threads: 11
Joined: Jan 2008
Reputation:
0
dini_Set(filename[], key[], value[]) will WRITE and dini_Get(filename[], key[]) will READ.
Posts: 209
Threads: 19
Joined: Dec 2008
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;
}
Posts: 209
Threads: 19
Joined: Dec 2008
Please help me
Posts: 209
Threads: 19
Joined: Dec 2008
Okay, Sorry. (Please visit my reply in Script Request
)
Posts: 209
Threads: 19
Joined: Dec 2008
Please! I Can't resolve it!
Posts: 209
Threads: 19
Joined: Dec 2008
Please!
Posts: 1,464
Threads: 11
Joined: Jan 2008
Reputation:
0
Edit: NVM I thought the script ain't working, but no, we won't script it for you.