Two questions. - 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: Two questions. (
/showthread.php?tid=380469)
Two questions. -
vIBIENNYx - 25.09.2012
First of all, when my series of cutscenes finishes a final "Tutorial commences" I've made a command to skip to the tutorial to test it but whenever it executes that code the following happens.
here is the code:
pawn Code:
SpawnPlayer(playerid);
SetPlayerPos(playerid, -2688.3894, 382.4438, 4.3672);
SetPlayerFacingAngle(playerid, 180);
StopCutsceneForPlayer(playerid);
currscene[playerid] = 0;
currcutscene[playerid] = 0;
StopAudioStreamForPlayer(playerid);
SetPlayerVirtualWorld(playerid, playerid+100);
pInTutorial[playerid] = 1;
new str[128];
format(str, sizeof(str), "Welcome to the tutorial, %s!", PlayerFirstName(playerid));
SendClientMessage(playerid, 0xFFCC9999, str);
SendClientMessage(playerid, 0xFFCC9999, "Pick up a 'i' pickup or icon to continue each part of the tutorial.");
SendClientMessage(playerid, 0xFFCC9999, "You will be prompted on how to finalise the tutorial, once you have finished.");
tutorialpickup[playerid][0] = CreatePickup(1239, 8, -2706.5, 357.1631, 4.4141, playerid);
tutorialpickup[playerid][1] = CreatePickup(1239, 8, -2706.5, 394.4166, 4.3672, playerid);
tutorialpickup[playerid][2] = CreatePickup(1239, 8, -2685.5, 382.2196, 4.3672, playerid);
tutorialpickup[playerid][3] = CreatePickup(1239, 8, -2685.5, 368.2350, 4.3964, playerid);
tutorialpickup[playerid][4] = CreatePickup(1239, 8, -2722.25, 368.0362, 4.3970, playerid);
----------------------------------------------------------------------------
Second of all, I have MySQL tracking queries but what is the best way to log certain commands and parameters, for account security and rule enforcement? I could keep it logged in the normal server log but it's incredibly inefficient.
Re: Two questions. -
[MG]Dimi - 25.09.2012
1) I don't understand. you have a command to stop a tutorial but it doesn't work?
2) Log it into MySQL. Create Table with columns you need and on each command execute you want to log just send query to MySQl.
Re: Two questions. -
GangsterLifeRP - 25.09.2012
Or Maybe dont Even Skipt tutorial and Make sure New Players learns to RP.. that would be the easy option
Re: Two questions. -
vIBIENNYx - 25.09.2012
It's not to skip the tutorial, it's to start the tutorial.
And is MySQL queries the best way to log?