13.07.2013, 18:08
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
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
Код:
#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; } } } }