//--- mods and stuff ----------------------------------------------------------- public OnVehicleMod(playerid,vehicleid,componentid) { //printf("Vehicle %d was modded by ID %d with the componentid %d",vehicleid,playerid,componentid); new playerState = GetPlayerState(playerid); if(/*GetPlayerLevel(playerid) < 3 &&*/ playerState == PLAYER_STATE_DRIVER) { new string[128]; format(string, sizeof(string),/* Now the message*/ "CAR MOD REPORT: %s (ID %d) has Modded Vehicle [%d] with the componentid [%d]" /* now the rest */ ,PlayerName(playerid), playerid, vehicleid, componentid); SendAdminMessage(string); return 1; } return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { //new string[48]; //format(string, sizeof(string), "You sprayed vehicle %d to colors %d and %d!", vehicleid,color1,color2); //SendClientMessage(playerid, COLOR_GREEN, string); new playerState = GetPlayerState(playerid); if(/*GetPlayerLevel(playerid) < 3 &&*/ playerState == PLAYER_STATE_DRIVER) { new string[126]; format(string, sizeof(string),/* Now the message*/ "CAR MOD REPORT: %s (ID %d) has sprayed vehicle [%d] to colors [%d] and [%d]" /* now the rest */,PlayerName(playerid), playerid, vehicleid,color1,color2); SendAdminMessage(string); return 1; } return 1; } public OnEnterExitModShop(playerid, enterexit, interiorid) { // if(enterexit == 0) // If enterexit is 0, this means they are exiting new playerState = GetPlayerState(playerid); if(/*GetPlayerLevel(playerid) < 3 &&*/ enterexit == 1 && playerState == PLAYER_STATE_DRIVER) { new string[126]; format(string, sizeof(string),/* Now the message*/ "CAR MOD REPORT: %s (ID %d) has entered: Transfender (Modding Shops)" /* now the rest */,PlayerName(playerid), playerid); SendAdminMessage(string); return 1; } if(/*GetPlayerLevel(playerid) < 3 &&*/ enterexit == 2 && playerState == PLAYER_STATE_DRIVER) { new string[126]; format(string, sizeof(string),/* Now the message*/ "CAR MOD REPORT: %s (ID %d) has entered: Loco Low (Modding Shops)" /* now the rest */,PlayerName(playerid), playerid); SendAdminMessage(string); return 1; } if(/*GetPlayerLevel(playerid) < 3 &&*/ enterexit == 3 && playerState == PLAYER_STATE_DRIVER) { new string[126]; format(string, sizeof(string),/* Now the message*/ "CAR MOD REPORT: %s (ID %d) has entered: Wheel Arch Angels (Modding Shops)" /* now the rest */,PlayerName(playerid), playerid); SendAdminMessage(string); return 1; } return 1; } // -----------------------------------------------------------------------------
Originally Posted by //exora
My blatant guess is that it is called due to the fact that you can RESPRAY your vehicle in the tuning menu.
Was the color 12 your actual vehicle color? If you'd like to save all modifications including colour when exitting tuningshops, this is usefull. I guess there's nothing gravely wrong with it. |
Originally Posted by BeckzyBoi
That's true, but isn't it a bug that it is called after you exit the modshop and drive out of it?
|