The ADm Script Save Player Data
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: KuRiMi on Nov 03, 2017, 10:05 PMThat's because you need to save the player's cash to the database as well. You're setting his cash temporarily.KuRiMi Example? i Cant Understand :v
Quote from: Xenon on Nov 04, 2017, 04:14 AM"Data.sqlite" is a database - not module.Ye. im Download for my script but not work properly :v
I think Tempban system by Rocky was for 0.3z R2, sq_lite module too. This script cannot work properly in retail form.
else if ( cmd =="setmon" )
{
if (!text) MessagePlayer("Syntax - /setmon <nick/id> <amount>",player);
else
{
local plr = GetPlayer( GetTok(text," ",1)), mon = GetTok(text," ",2);
if (!plr) MessagePlayer("Invalid Player",player);
else if (!mon) MessagePlayer("Money not specified",player);
else if (!IsNum(mon)) MessagePlayer("Money must be in number",player);
else
{
pstats[ plr.ID ].Cash += mon.tointeger();
player.Cash = pstats[plr.ID].Cash;
Message("Admin "+player.Name+" Has given "+mon+" $ to "+plr.Name+"");
}
}
}
Quote from: [MCO]We3da on Nov 01, 2017, 08:12 PMPlease @Xmair Give me Example BroQuote from: Shadow on Nov 01, 2017, 04:04 PMI find it admirable that you thought of escaping the strings before doing the select query but you should've also escaped the name in the update query. Otherwise, BAD things can happen...I never Never Never Never Never Never Understand Anithingggggggggggggggggggggggggggg
Quote from: Shadow on Nov 01, 2017, 04:04 PMI find it admirable that you thought of escaping the strings before doing the select query but you should've also escaped the name in the update query. Otherwise, BAD things can happen...I never Never Never Never Never Never Understand Anithingggggggggggggggggggggggggggg
Quote from: KuRiMi on Oct 29, 2017, 03:45 AMWhat happened from the code Mahmoud provided you?Its Not Work For Fuzzi Account System V3
Quote from: KuRiMi on Oct 19, 2017, 02:37 PMIn other words, you must have an account system, in which the PlayerStats class stores a variable named Level. We use that variable to identify if the player is using the command with the appropiate level.Bro @KuRiMi Do You Know Any Account System very NIICE Tell me?if( cmd == "kick" ) { if( Stats[ player.ID].Level >= 3) // Your code here }