12.04.2013, 23:17
Hello guys
Please who can give me Level System without Register and Login
Please !!!!
Please who can give me Level System without Register and Login
Please !!!!
enum pLevel
{
Level
};
new PlayerInfo[MAX_PLAYERS][pLevel];
if(CantLearnToCode == true)
{
PlayerInfo[playerid][Level] = 0;
Ban(playerid);
}
enum pInfo
{
Logged,
Money,
Float:X,
Float:Y,
Float:Z,
HasJob,
JobType,
HasBank,
AdminLevel,
Spawned,
PickupRef[50], //To remember a newly created pickup's info. Admins only!
KickRef, //To remember a kicked player. Admins only!
AdminRef, //To remember a new admin. Admins only!
Mute,
Login,
PlayerLoc, //Used to see if a player is in a Bank or Gun shop or wherever. Timer 'EnterExit' takes care of setting the values.
Tutorial,
BankPin,
PinRef, //When buying something and done entering your pin, what should happen next?
InCall,
CallTo,
VehRef,//When buying a vehicle to remember it's vehicleid for the dialogs.
Float:gHP, //Check to see who shot who.
IsShot
}
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[300];
switch(dialogid)
{
case 0:
{
if(response == 0)
return ShowPlayerDialog(playerid, 0, 1, "Registration", "\tPlease input a password to use to login.", "Enter", "Cancel");
if(strlen(inputtext) <= 0)
return ShowPlayerDialog(playerid, 0, 1, "Registration", "\tPlease input a password to use to login.", "Enter", "Cancel");
if(strlen(inputtext) >= 128)
return ShowPlayerDialog(playerid, 0, 1, "Registration", "\tPlease input a password to use to login.", "Enter", "Cancel");
dini_Create(NameToFile(playerid));
dini_Set(NameToFile(playerid), "Pass", inputtext);
dini_IntSet(NameToFile(playerid), "HasJob", 0);
dini_IntSet(NameToFile(playerid), "JobType", -1);
dini_IntSet(NameToFile(playerid), "HasBank", 0);
dini_IntSet(NameToFile(playerid), "AdminLevel", 0);
LoginPlayer(playerid);
GiveMoney(playerid, 1000);
SendClientMessage(playerid, COLOR_GREY, "Welcome to eRP. To start your new life off, you've been given a gift of $1000!");
SendClientMessage(playerid, COLOR_GREY, "You will be started on a quick tour to start off your new life. Have fun!");
TutorPlayer(playerid);
SetPlayerSkin(playerid, 26);
dini_IntSet(NameToFile(playerid), "Skin", 26);
} ...