Virtual world - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Virtual world (
/showthread.php?tid=602086)
Virtual world -
Kimble - 02.03.2016
Is the virtual world variable server sided and safe? I mean is it safe from cheaters?
I wanna make the GetPlayerVirtualWorld kinda like a login check. Players who logged in will be placed in virtual world 1 and those that aren't logged in will be in the default world 0.
Re: Virtual world -
Trucido - 02.03.2016
idk.. why not make a bool?
example
Код:
new Bool:bIsLogged[MAX_PLAYERS];
OnPlayerConnect( playerid ) // or w/e
{
bIsLogged[playerid] = false;
}
// then when they login
bIsLogged[playerid] = true;
// then
OnPlayerUpdate( playerid )
{
if ( bIsLogged[playerid] )
SetPlayerVirtualWorld(playerid, 1);
else
SetPlayerVirtualWorld(playerid, 0);
}
anyway, real hackers will always find a way to get around it, its been done before. you shouldnt be worried tho since most kids on samp that cheat dont really know shit
Re: Virtual world -
itsCody - 02.03.2016
Run a proper anti cheat and you won't have to worry about separating players with virtual worlds.
Re: Virtual world -
Kimble - 02.03.2016
Thanks for the suggestions but i would rather like an answer to my question ... are virtual worlds server sided or can players tamper with them localy.
Re: Virtual world -
Kimble - 04.03.2016
Bumper.
Re: Virtual world -
Kimble - 06.03.2016
Re: Virtual world -
MicroKyrr - 06.03.2016
Quote:
Originally Posted by Kimble
Thanks for the suggestions but i would rather like an answer to my question ... are virtual worlds server sided or can players tamper with them localy. 
|
I think No :/
Re: Virtual world -
Threshold - 07.03.2016
Virtual worlds, interiors, health, armour, weapons, position. Pretty much everything that you can 'set' on a player script-wise, is client-side. This is the reason why people use server sided systems for cash, weapons etc.
You can't really stop them from doing this, because there are functions to stop them being affected by RPCs sent by the server. So they can easily block out SetPlayerVirtualWorld. Your best option would be to kick them if they don't fit the standards.
Re: Virtual world -
Kimble - 08.03.2016
Thanks all.