Autowork problem - 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: Autowork problem (
/showthread.php?tid=450542)
Autowork problem -
Coz - 13.07.2013
This is pretty much the code, autowork doesn't actually work for some reason, I've looked at the code serveral times and can't figure out why it's not activating after you complete your mission
Код:
#define settings8 1057 // AutoWork
if(PInfo[playerid][sAutoWork] == 1) { StartMission(playerid); }
public OnPlayerEnterRaceCheckpoint(playerid)
if(PInfo[playerid][sAutoWork] == 1) { StartMission(playerid); }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid == settings8)
{
if(response)
{
new msg[128];
format(msg,sizeof(msg),"You have updated your auto work settings.");
PlayerPlaySound(playerid, 1138, 0, 0, 0);
switch(listitem)
{
case 0: //Enable
{
PInfo[playerid][sAutoWork] = 1;
SendClientMessage(playerid, COLOR_IRC, msg);
ShowPlayerSettings(playerid);
return 1;
}
case 1: //Disable
{
PInfo[playerid][sAutoWork] = 0;
SendClientMessage(playerid, COLOR_IRC, msg);
ShowPlayerSettings(playerid);
return 1;
}
}
}
}
Anybody have any experience with this? This is a new flying server, anybody willing to help I will make admin in the server!! Thank you