Open VC in Single Player and change the resolution to 32 bit mode.
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: PSL on Mar 09, 2024, 08:11 AMThe following code may help youDiePos<-{}; //Create a table where you can store coordinates
function onPlayerSpawn(player)
{
if(DiePos.rawin(player.ID)) //If an ID exists in the table
{
player.Pos=DiePos.rawget(player.ID); //Restores the player to death point
DiePos.rawdelete(player.ID); //Delete coordinates after recovery
}
}
function onPlayerDeath(player,reason)
{
DiePos.rawset(player.ID,player.Pos); //After the player dies, the ID is used as the search object, and the death coordinates are stored in the table
}
function onPlayerPart(player, reason) {
if (DiePos.rawin(player.ID))
DiePos.rawdelete(player.ID);
}
Quote from: vitovc on Sep 11, 2023, 12:40 PMin my point of view clouds are dangerous in terms of unexpected bills, especially if you are using credit card. free trial is a baitAgreed. Cloud is the biggest scam lol. There are so many hidden bills
Quote from: habi on Jul 11, 2023, 04:35 AMyou give it by adding ammo to current ammo:Better version:player.SetWeapon(13, 10 + player.GetAmmoAtSlot(2));
For rocket, slot is 7.
player.GiveWeapon(13, 10);
Quote from: Nihongo^ on Jun 27, 2023, 08:30 AMThank you so much xmair for giving me such an amazing ideaLook into JOIN queries
just one more thing, how do now i select different columns in a different table of the same person?
Like picking IP from Accounts and picking UID from Alias table
Thank you
Quote from: habi on Jun 28, 2023, 07:04 PMHowever the "[SCRIPT]" part remain.Its possible to remove the [SCRIPT] tag by doing something like this:
print("\rTest 123");
local accDetails = QuerySQL(db, format("SELECT IP, UID, UID2 FROM Accounts WHERE Name = '%s', escapeSQLString(plr)));
if (accDetails == null) // handle invalid nickname
else {
QuerySQL(db, format("INSERT INTO TempBans (Name, UID, UID2, IP, Time, ExpireTime, TimeExpireRatio, Admin, Reason) VALUES ('%s', '%s', '%s', '%s', %i, %i, %s, %s, %s)", escapeSQLString(plr), GetSQLColumnData(accDetails, 1), GetSQLColumnData(accDetails, 2), GetSQLColumnData(accDetails, 0), time(), calc, expire, player.Name, escapeSQLString(reason)));
}
Quote from: habi on May 19, 2023, 04:47 PMi disagree
If you use function FindPlayer in console, each time it appears you are getting a new instance. So the property will be false.
This is the same problem why 'false' is printed on console after spawning:QuoteCPlayer.rawnewmember("SpawnProtection", false);
function onPlayerSpawn(player) {
player.SpawnProtection = true;
player.Immunity = 31;
MessagePlayer("You have spawn protection for five seconds", player);
NewTimer("TurnOffSpawnProtection", 5000, 1, player.ID);
}
function TurnOffSpawnProtection(player) {
if ((player = FindPlayer(player)) != null) {
print(player.SpawnProtection);
player.SpawnProtection = false;
player.Immunity = 0;
}
}
CPlayer.rawnewmember("<member name>", <default val>);
Quote from: http://squirrel-lang.org/doc/squirrel3.htmlrawnewmember(key,val,[attrs],[bstatic])
sets/adds the slot 'key' with the value 'val' and attributes 'attrs'.If bstatic is true the slot will be added as static. If the slot does not exists , it will be created. It doesn't invoke any metamethod.
CPlayer.rawnewmember("SpawnProtection", false);
function onPlayerSpawn(player) {
player.SpawnProtection = true;
player.Immunity = 31;
MessagePlayer("You have spawn protection for five seconds", player);
NewTimer("TurnOffSpawnProtection", 5000, 1, player.ID);
}
function TurnOffSpawnProtection(player) {
if ((player = FindPlayer(player)) != null) {
player.SpawnProtection = false;
player.Immunity = 0;
}
}